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
|
||||||
build
|
build
|
||||||
depends
|
depends
|
||||||
|
result
|
||||||
*~
|
*~
|
||||||
quox
|
quox
|
||||||
quox-tests
|
quox-tests
|
||||||
|
|
24
flake.nix
24
flake.nix
|
@ -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 = idrisPackage ./exe { extraPkgs = packages; };
|
||||||
|
quox-tests = idrisPackage ./tests { extraPkgs = packages; };
|
||||||
|
};
|
||||||
|
|
||||||
quox-lib = idrisPackage ./lib { };
|
devShells =
|
||||||
quox = idrisPackage ./exe { extraPkgs.quox-lib = quox-lib; };
|
let mkDevShell = _: pkg:
|
||||||
quox-tests = idrisPackage ./tests { extraPkgs.quox-lib = quox-lib; };
|
pkgs.mkShell { buildInputs = [ (builders.devEnv pkg) ]; };
|
||||||
in
|
in builtins.mapAttrs mkDevShell packages;
|
||||||
{
|
in {
|
||||||
packages = { inherit quox-lib quox quox-tests; };
|
inherit packages devShells;
|
||||||
defaultPackage = quox;
|
defaultPackage = packages.quox;
|
||||||
|
devShell = devShells.quox-lib;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue