mirror of
https://github.com/input-output-hk/foliage.git
synced 2024-11-26 12:23:38 +03:00
Flake tweaks
This commit is contained in:
parent
5be1311662
commit
ab2ef08536
14
flake.nix
14
flake.nix
@ -14,10 +14,7 @@
|
||||
(final: prev: {
|
||||
foliage =
|
||||
final.haskell-nix.project' {
|
||||
src = final.haskell-nix.haskellLib.cleanGit {
|
||||
name = "foliage-src";
|
||||
src = ./.;
|
||||
};
|
||||
src = ./.;
|
||||
compiler-nix-name = "ghc8107";
|
||||
shell.tools = {
|
||||
cabal = {};
|
||||
@ -31,11 +28,12 @@
|
||||
})
|
||||
];
|
||||
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
|
||||
flake = pkgs.foliage.flake {
|
||||
# This adds support for `nix build .#js-unknown-ghcjs-cabal:hello:exe:hello`
|
||||
# crossPlatforms = p: [p.ghcjs];
|
||||
};
|
||||
flake = pkgs.foliage.flake { };
|
||||
in flake // {
|
||||
defaultPackage = flake.packages."foliage:exe:foliage";
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
name = "foliage-dev-shell";
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user