Don't include build tools in main lib output

This commit is contained in:
Paul Brinkmeier 2025-10-07 00:47:50 +02:00
parent af16429d82
commit 4db509c1b5

View File

@ -7,7 +7,14 @@
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
opium = pkgs.haskellPackages.developPackage { in {
packages.opium = pkgs.haskell.lib.overrideCabal (pkgs.haskellPackages.developPackage { root = ./.; }) {
# Currently the tests require a running Postgres instance.
# This is not automated yet, so don't export the tests.
doCheck = false;
};
devShells.default = (pkgs.haskellPackages.developPackage {
root = ./.; root = ./.;
modifier = drv: modifier = drv:
pkgs.haskell.lib.addBuildTools drv [ pkgs.haskell.lib.addBuildTools drv [
@ -15,15 +22,7 @@
pkgs.haskellPackages.implicit-hie pkgs.haskellPackages.implicit-hie
pkgs.haskell-language-server pkgs.haskell-language-server
]; ];
}; }).env;
in {
packages.opium = pkgs.haskell.lib.overrideCabal opium {
# Currently the tests require a running Postgres instance.
# This is not automated yet, so don't export the tests.
doCheck = false;
};
devShells.default = opium.env;
} }
); );
} }