Last active
April 6, 2019 21:23
-
-
Save AleXoundOS/9a27b23504f0cd57b6c87e2cfcc107a4 to your computer and use it in GitHub Desktop.
Revisions
-
AleXoundOS revised this gist
Apr 6, 2019 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,11 @@ let in stdenv.mkDerivation { name = "myUsbZlibEnv"; inherit buildInputs; # For unknown reason libz.so cannot be found for linking without this # despite being present in buildInputs. # I took inspiration for this from haskell-modules/generic-stack-builder.nix. # And if buildStackProject supports somehow binary ghc (i.e. ghc822Binary), # the following expression in not needed. LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; } -
AleXoundOS created this gist
Apr 6, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ with (import <nixpkgs> {}); let buildInputs = [haskell.compiler.ghc822Binary pkgconfig zlib]; in stdenv.mkDerivation { name = "myUsbZlibEnv"; inherit buildInputs; LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; }