tests.haskell.setBuildTarget: avoid lib.fileset

This commit is contained in:
Emily
2024-12-31 02:30:18 +00:00
parent f6cc18e0e4
commit 77def225cb
5 changed files with 3 additions and 11 deletions
+3 -11
View File
@@ -1,7 +1,7 @@
{ pkgs, haskellPackages }:
let
# This can be regenerated by running `cabal2nix .` in the current directory.
# This can be regenerated by running `cabal2nix ./src` in the current directory.
pkgDef =
{
mkDerivation,
@@ -11,19 +11,11 @@ let
mkDerivation {
pname = "haskell-setBuildTarget";
version = "0.1.0.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./haskell-setBuildTarget.cabal
./Bar.hs
./Foo.hs
./Setup.hs
];
};
src = ./src;
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [ base ];
license = lib.licenses.bsd3;
license = "unknown";
};
drv = haskellPackages.callPackage pkgDef { };