pkgs.tests.haskell.cabalSdist: Avoid IFD

This commit is contained in:
Robert Hensing 2022-05-24 13:23:19 +02:00
parent cf5e2d5103
commit 392fba1132
2 changed files with 13 additions and 1 deletions

@ -1,7 +1,7 @@
{ lib, haskellPackages, runCommand }:
let
localRaw = haskellPackages.callCabal2nix "local" ./local {};
localRaw = haskellPackages.callPackage ./local/generated.nix {};
in
lib.recurseIntoAttrs rec {

@ -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;
}