2, stdenv, gmp6, openssl, zlib, libffi
11 # Grab the compiler name from stack-to-nix output.
12 # compiler = (stack-pkgs.extras {}).compiler.nix-name;
13 compiler = "ghc865"; # fixme
16 project = { gpl ? true }: stackProject' {
17 src = testSrc "fully-static";
21 # Select a non-GMP compiler, usually for software licensing reasons.
22 ghc.package = mkIf (stdenv.hostPlatform.isMusl && !gpl)
23 buildPackages.haskell-nix.compiler.integer-simple.${compiler};
27 packagesGmp = (project { gpl = true; }).hsPkgs;
28 packagesIntegerSimple = (project { gpl = false; }).hsPkgs;
32 stack-nix-gmp = (project { gpl = true; }).stack-nix;
33 stack-nix-simple = (project { gpl = false; }).stack-nix;
35 run = stdenv.mkDerivation {
36 name = "fully-static-test";
38 depsBuildBuild = [ buildPackages.file ];
40 buildCommand = flip concatMapStrings
41 [ packagesGmp /* packagesIntegerSimple */ ]
43 exe="${packages.pandoc.components.exes.pandoc}/bin/pandoc${stdenv.hostPlatform.extensions.executable}"
45 printf "checking whether executable runs... " >& 2
46 ${toString packages.pandoc.components.exes.pandoc.config.testWrapper} $exe --version
48 '' + optionalString stdenv.hostPlatform.isMusl ''
49 printf "checking whether executable is static... " >& 2
51 file $exe | grep "statically linked"
55 meta.platforms = platforms.all;
58 # Attributes used for debugging with nix repl
59 inherit buildPackages;
60 project-gmp = project { gpl = true; };
61 project-integer-simple = project { gpl = false; };
62 pandoc-gmp = packagesGmp.pandoc.components.exes.pandoc;
63 pandoc-integer-simple = packagesIntegerSimple.pandoc.components.exes.pandoc;
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