mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Add a nix shell
This commit is contained in:
parent
a384248d68
commit
0205d03302
@ -6,9 +6,13 @@
|
|||||||
outputs = { self, nixpkgs, flake-utils }:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
flake-utils.lib.eachDefaultSystem
|
flake-utils.lib.eachDefaultSystem
|
||||||
(system:
|
(system:
|
||||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
package = pkgs.callPackage ./package.nix {};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
packages.default = pkgs.callPackage ./package.nix {};
|
packages.default = package.app;
|
||||||
|
devShells.default = package.shell;
|
||||||
|
|
||||||
checks = {
|
checks = {
|
||||||
# I used to put these into $out/lib, but justStaticExecutables
|
# I used to put these into $out/lib, but justStaticExecutables
|
||||||
|
|||||||
@ -36,4 +36,10 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
hlib.justStaticExecutables hpkgs.stackage-server
|
{
|
||||||
|
app = hlib.justStaticExecutables hpkgs.stackage-server;
|
||||||
|
shell = hpkgs.shellFor {
|
||||||
|
packages = p: [ p.stackage-server ];
|
||||||
|
buildInputs = [ pkgs.cabal-install pkgs.haskell-language-server pkgs.ghcid ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user