1 { fetchurl, makeWrapper, patchelf, lib, stdenv, libXft, libX11, freetype, fontconfig, libXrender, libXScrnSaver, libXext }:
3 stdenv.mkDerivation rec {
8 name = "gorilla1537_64.bin";
9 url = "http://gorilla.dp100.com/downloads/gorilla1537_64.bin";
10 sha256 = "19ir6x4c01825hpx2wbbcxkk70ymwbw4j03v8b2xc13ayylwzx0r";
13 nativeBuildInputs = [ patchelf makeWrapper ];
17 cp $curSrc gorilla/gorilla-${version};
21 interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
22 libPath = lib.makeLibraryPath [ libXft libX11 freetype fontconfig libXrender libXScrnSaver libXext ];
24 mkdir -p $out/opt/password-gorilla
26 cp gorilla-${version} $out/opt/password-gorilla
27 chmod ugo+x $out/opt/password-gorilla/gorilla-${version}
28 patchelf --set-interpreter "${interpreter}" "$out/opt/password-gorilla/gorilla-${version}"
29 makeWrapper "$out/opt/password-gorilla/gorilla-${version}" "$out/bin/gorilla" \
30 --prefix LD_LIBRARY_PATH : "${libPath}"
34 description = "Password Gorilla is a Tk based password manager";
35 mainProgram = "gorilla";
36 homepage = "https://github.com/zdia/gorilla/wiki";
37 maintainers = [ lib.maintainers.namore ];
38 platforms = [ "x86_64-linux" ];
39 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
40 license = lib.licenses.gpl2Plus;