Flake tweaks

This commit is contained in:
Andrea Bedini 2022-04-21 14:05:47 +08:00
parent 5be1311662
commit ab2ef08536
No known key found for this signature in database
GPG Key ID: EE8DEB94262733BE

View File

@ -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";
};
});
}