nix fixes (nixes)
This commit is contained in:
parent
1931f954fb
commit
944749d868
2 changed files with 17 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
.build
|
||||
build
|
||||
depends
|
||||
result
|
||||
*~
|
||||
quox
|
||||
quox-tests
|
||||
|
|
24
flake.nix
24
flake.nix
|
@ -14,16 +14,24 @@
|
|||
inherit system;
|
||||
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 = idrisPackage ./exe { extraPkgs.quox-lib = quox-lib; };
|
||||
quox-tests = idrisPackage ./tests { extraPkgs.quox-lib = quox-lib; };
|
||||
in
|
||||
{
|
||||
packages = { inherit quox-lib quox quox-tests; };
|
||||
defaultPackage = quox;
|
||||
quox = idrisPackage ./exe { extraPkgs = packages; };
|
||||
quox-tests = idrisPackage ./tests { extraPkgs = packages; };
|
||||
};
|
||||
|
||||
devShells =
|
||||
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;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue