From 23639c69b14a67bc5d6546098f0ea64bed1310de Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Sun, 22 Oct 2023 18:11:56 +0200 Subject: [PATCH] Initial commit --- flake.nix | 11 +++++++++++ trivial/flake.nix | 19 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 flake.nix create mode 100644 trivial/flake.nix 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") + ]; + }; + }); +}