nix fixes (nixes)

This commit is contained in:
rhiannon morris 2022-05-06 20:27:45 +02:00
parent 1931f954fb
commit 944749d868
2 changed files with 17 additions and 8 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
.build .build
build build
depends depends
result
*~ *~
quox quox
quox-tests quox-tests

View file

@ -14,16 +14,24 @@
inherit system; inherit system;
overlays = [ idris2-pkgs.overlay ]; overlays = [ idris2-pkgs.overlay ];
}; };
builders = pkgs.idris2-pkgs._builders;
inherit (pkgs.idris2-pkgs._builders) idrisPackage; packages =
let inherit (builders) idrisPackage;
in rec {
quox-lib = idrisPackage ./lib { }; quox-lib = idrisPackage ./lib { };
quox = idrisPackage ./exe { extraPkgs.quox-lib = quox-lib; }; quox = idrisPackage ./exe { extraPkgs = packages; };
quox-tests = idrisPackage ./tests { extraPkgs.quox-lib = quox-lib; }; quox-tests = idrisPackage ./tests { extraPkgs = packages; };
in };
{
packages = { inherit quox-lib quox quox-tests; }; devShells =
defaultPackage = quox; let mkDevShell = _: pkg:
pkgs.mkShell { buildInputs = [ (builders.devEnv pkg) ]; };
in builtins.mapAttrs mkDevShell packages;
in {
inherit packages devShells;
defaultPackage = packages.quox;
devShell = devShells.quox-lib;
} }
); );
} }