Add a nix shell

This commit is contained in:
Bryan Richter 2025-03-18 13:59:53 +02:00
parent a384248d68
commit 0205d03302
No known key found for this signature in database
GPG Key ID: B202264020068BFB
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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 ];
};
}