Created
May 30, 2017 20:01
-
-
Save anonymous/14ada2b565ab6fb74478ea74994b3826 to your computer and use it in GitHub Desktop.
This file contains 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 characters
with import <nixpkgs> {}; | |
#{ stdenv, fetchurl }: | |
#{stdenv}: | |
stdenv.mkDerivation { | |
name = "mist-0.8.10"; | |
src = ./Mist-linux64-0-8-10.zip; | |
#src = fetchurl { | |
# url = "https://github.com/ethereum/mist/releases/download/v0.8.10/Mist-linux32-0-8-10.zip"; | |
# md5 = "6c75bf8984952395cc72e1028ddd3ba3"; | |
#}; | |
buildInputs = [ unzip ]; | |
libPath = stdenv.lib.makeLibraryPath [ | |
]; | |
phases = [ "unpackPhase" "installPhase" ]; | |
installPhase = '' | |
mkdir -p "$out/opt/mist-0.8.10" | |
cp -r . "$out/opt/mist-0.8.10" | |
chmod +x "$out/opt/mist-0.8.10/mist" | |
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ | |
--set-rpath ${lib.makeLibraryPath [ gtk2 ]} "$out/opt/mist-0.8.10/mist" | |
mkdir "$out/bin" | |
ln -s "$out/opt/mist-0.8.10/mist" "$out/bin/mist" | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment