Nix integration cleanup
Some checks failed
build / Haskell GHC (push) Has been cancelled

Keep the shell used by Stack defined in one place.
This commit is contained in:
Bryan Richter 2025-11-20 20:12:15 +02:00
parent 1a4328b7d9
commit 51592009a1
No known key found for this signature in database
GPG Key ID: B202264020068BFB
3 changed files with 9 additions and 6 deletions

View File

@ -40,6 +40,6 @@ in
app = hlib.justStaticExecutables hpkgs.stackage-server; app = hlib.justStaticExecutables hpkgs.stackage-server;
shell = hpkgs.shellFor { shell = hpkgs.shellFor {
packages = p: [ p.stackage-server ]; packages = p: [ p.stackage-server ];
buildInputs = [ pkgs.cabal-install pkgs.haskell-language-server pkgs.ghcid pkgs.haskellPackages.yesod-bin ]; buildInputs = [ pkgs.cabal-install pkgs.haskell-language-server pkgs.ghcid pkgs.haskellPackages.yesod-bin pkgs.postgresql ];
}; };
} }

7
shell.nix Normal file
View File

@ -0,0 +1,7 @@
(import (
fetchGit {
url = "https://github.com/edolstra/flake-compat";
}
) {
src = ./.;
}).shellNix

View File

@ -30,8 +30,4 @@ allow-newer-deps:
- pantry - pantry
nix: nix:
packages: shell-file: shell.nix
- zlib
- postgresql
- pkg-config
- cacert