diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-05-24 13:23:19 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-05-24 13:23:19 +0200 |
commit | 392fba113292aa10ba8ea9b68710a73ca17cac0e (patch) | |
tree | a3b22bfb791608e2f3ab6bd3066fa2467fc71942 /pkgs/test/haskell/cabalSdist | |
parent | cf5e2d510316ae0e2e78486e28b79b1fa30799fa (diff) |
pkgs.tests.haskell.cabalSdist: Avoid IFD
Diffstat (limited to 'pkgs/test/haskell/cabalSdist')
-rw-r--r-- | pkgs/test/haskell/cabalSdist/default.nix | 2 | ||||
-rw-r--r-- | pkgs/test/haskell/cabalSdist/local/generated.nix | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/test/haskell/cabalSdist/default.nix b/pkgs/test/haskell/cabalSdist/default.nix index 2ab815f5d4f62..1031e51e4f141 100644 --- a/pkgs/test/haskell/cabalSdist/default.nix +++ b/pkgs/test/haskell/cabalSdist/default.nix @@ -1,7 +1,7 @@ { lib, haskellPackages, runCommand }: let - localRaw = haskellPackages.callCabal2nix "local" ./local {}; + localRaw = haskellPackages.callPackage ./local/generated.nix {}; in lib.recurseIntoAttrs rec { diff --git a/pkgs/test/haskell/cabalSdist/local/generated.nix b/pkgs/test/haskell/cabalSdist/local/generated.nix new file mode 100644 index 0000000000000..bfa299962bcb4 --- /dev/null +++ b/pkgs/test/haskell/cabalSdist/local/generated.nix @@ -0,0 +1,12 @@ +# nix run ../../../../..#cabal2nix -- ./. +{ mkDerivation, base, lib }: +mkDerivation { + pname = "local"; + version = "0.1.0.0"; + src = ./.; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ base ]; + description = "Nixpkgs test case"; + license = lib.licenses.mit; +} |