2021-01-15 09:19:50 +00:00
|
|
|
{ fetchurl, makeWrapper, patchelf, lib, stdenv, libXft, libX11, freetype, fontconfig, libXrender, libXScrnSaver, libXext }:
|
2016-12-27 22:41:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gorilla-bin";
|
2016-12-27 22:41:44 +00:00
|
|
|
version = "1.5.3.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "gorilla1537_64.bin";
|
|
|
|
url = "http://gorilla.dp100.com/downloads/gorilla1537_64.bin";
|
|
|
|
sha256 = "19ir6x4c01825hpx2wbbcxkk70ymwbw4j03v8b2xc13ayylwzx0r";
|
|
|
|
};
|
|
|
|
|
2018-09-27 21:38:10 +00:00
|
|
|
nativeBuildInputs = [ patchelf makeWrapper ];
|
2016-12-27 22:41:44 +00:00
|
|
|
|
|
|
|
unpackCmd = ''
|
|
|
|
mkdir gorilla;
|
|
|
|
cp $curSrc gorilla/gorilla-${version};
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = let
|
|
|
|
interpreter = "$(< \"$NIX_CC/nix-support/dynamic-linker\")";
|
2021-01-15 09:19:50 +00:00
|
|
|
libPath = lib.makeLibraryPath [ libXft libX11 freetype fontconfig libXrender libXScrnSaver libXext ];
|
2016-12-27 22:41:44 +00:00
|
|
|
in ''
|
|
|
|
mkdir -p $out/opt/password-gorilla
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gorilla-${version} $out/opt/password-gorilla
|
|
|
|
chmod ugo+x $out/opt/password-gorilla/gorilla-${version}
|
|
|
|
patchelf --set-interpreter "${interpreter}" "$out/opt/password-gorilla/gorilla-${version}"
|
|
|
|
makeWrapper "$out/opt/password-gorilla/gorilla-${version}" "$out/bin/gorilla" \
|
|
|
|
--prefix LD_LIBRARY_PATH : "${libPath}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Password Gorilla is a Tk based password manager";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/zdia/gorilla/wiki";
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = [ lib.maintainers.namore ];
|
2016-12-27 22:41:44 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2022-06-16 23:40:08 +00:00
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2016-12-27 22:41:44 +00:00
|
|
|
};
|
|
|
|
}
|