1{ pkgs, compiler-nix-name }:
7 project = haskell-nix.cabalProject' {
8 inherit compiler-nix-name;
9 src = pkgs.haskell-nix.haskellLib.cleanGit { src = ../..; name = "setup-deps"; subDir = "test/setup-deps"; };
11 # Package has no exposed modules which causes
12 # haddock: No input file(s)
13 packages.bytestring-builder.doHaddock = false;
15 { reinstallableLibGhc = true; } ];
18 packages = project.hsPkgs;
19in recurseIntoAttrs (if stdenv.buildPlatform != stdenv.hostPlatform
21 let skip = pkgs.runCommand "skip-test-setup-deps" {} ''
22 echo "Skipping setup-deps test when cross compiling as it needs the ghc lib" >& 2
26 ifdInputs = { plan-nix = skip; };
31 inherit (project) plan-nix;
33 run = pkgs.stdenv.mkDerivation {
34 name = "setup-deps-test";
37 exe="${packages.pkg.components.exes.pkg}/bin/pkg"
39 printf "checking whether executable runs... " >& 2
45 meta.platforms = platforms.unix;
46 meta.disabled = stdenv.hostPlatform.isMusl || stdenv.hostPlatform.isWindows;
49 # Attributes used for debugging with nix repl
50 inherit project packages;
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list