commit 23639c69b14a67bc5d6546098f0ea64bed1310de Author: Marty Sluijtman Date: Sun Oct 22 18:11:56 2023 +0200 Initial commit diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d87751d --- /dev/null +++ b/flake.nix @@ -0,0 +1,11 @@ +{ description = "My collection of flake templates"; + outputs = { self }: { + templates = { + trivial = { + path = ./trivial; + description = "What I consider to be the bare minimum flake"; + }; + }; + defaultTemplate = self.templates.trivial; + }; +} diff --git a/trivial/flake.nix b/trivial/flake.nix new file mode 100644 index 0000000..30620ab --- /dev/null +++ b/trivial/flake.nix @@ -0,0 +1,19 @@ +{ description = "SQLite test environment"; + inputs = { + nixpkgs.url = github:nixos/nixpkgs/nixos-23.05; + flake-utils.url = github:numtide/flake-utils; + }; + outputs = { self, nixpkgs, flake-utils}: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; + in { + packages = rec { + default = throw "put derivation information here"; + }; + devShells.default = pkgs.mkShell { + buildInputs = with pkgs; [ + (throw "put packages here") + ]; + }; + }); +}