Skip to content

Instantly share code, notes, and snippets.

@AleXoundOS
Last active April 6, 2019 21:23
Show Gist options
  • Select an option

  • Save AleXoundOS/9a27b23504f0cd57b6c87e2cfcc107a4 to your computer and use it in GitHub Desktop.

Select an option

Save AleXoundOS/9a27b23504f0cd57b6c87e2cfcc107a4 to your computer and use it in GitHub Desktop.

Revisions

  1. AleXoundOS revised this gist Apr 6, 2019. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion shell.nix
    Original 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;
    }
  2. AleXoundOS created this gist Apr 6, 2019.
    11 changes: 11 additions & 0 deletions shell.nix
    Original 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;
    }