pkgs.tests.haskell.cabalSdist: Avoid IFD
This commit is contained in:
parent
cf5e2d5103
commit
392fba1132
@ -1,7 +1,7 @@
|
||||
{ lib, haskellPackages, runCommand }:
|
||||
|
||||
let
|
||||
localRaw = haskellPackages.callCabal2nix "local" ./local {};
|
||||
localRaw = haskellPackages.callPackage ./local/generated.nix {};
|
||||
in
|
||||
lib.recurseIntoAttrs rec {
|
||||
|
||||
|
12
pkgs/test/haskell/cabalSdist/local/generated.nix
Normal file
12
pkgs/test/haskell/cabalSdist/local/generated.nix
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user