From 2f8dce44d3f2be74b5c6ec0a2e7f4ceced715328 Mon Sep 17 00:00:00 2001 From: pennae Date: Wed, 13 Jul 2022 10:33:30 +0200 Subject: initial import --- flake.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..8276544 --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + inputs = { + nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable-small; + }; + + outputs = { self, nixpkgs }: + let + systems = { "x86_64-linux" = {}; }; + combine = fn: with builtins; + let + parts = mapAttrs (s: _: fn (nixpkgs.legacyPackages.${s})) systems; + keys = foldl' (a: b: a // b) {} (attrValues parts); + in + mapAttrs (k: _: mapAttrs (s: _: parts.${s}.${k} or {}) systems) keys; + in + combine (pkgs: rec { + packages = rec { + minor-skulk = pkgs.callPackage ./default.nix {}; + default = minor-skulk; + }; + + devShells.default = pkgs.mkShell { + inputsFrom = [ packages.default ]; + packages = with pkgs; [ + rustfmt + rust-analyzer + clippy + sqlx-cli + ]; + }; + }); +} -- cgit v1.2.3