diff options
author | Graham Christensen <graham@grahamc.com> | 2016-11-27 20:59:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-27 20:59:56 -0500 |
commit | 7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb (patch) | |
tree | 0f67e4eaac72772945dcbae719512a9afed669e6 /pkgs/tools | |
parent | ff1c76e9ebf7268da04611cbbf7e14b4ddfcf732 (diff) | |
parent | 031d639b4d2119fa5d6ffaa1e24d7243ec959b69 (diff) | |
download | nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.tar nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.tar.gz nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.tar.bz2 nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.tar.lz nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.tar.xz nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.tar.zst nixpkgs-7b5619506b69ff60c73cb6e1b5eb0e49a149e1cb.zip |
Merge pull request #20250 from guillaumekoenig/add-encryptr-2.0.0
encryptr: init at 2.0.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/encryptr/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/tools/security/encryptr/default.nix b/pkgs/tools/security/encryptr/default.nix new file mode 100644 index 00000000000..95d0299e873 --- /dev/null +++ b/pkgs/tools/security/encryptr/default.nix @@ -0,0 +1,57 @@ +{ stdenv, fetchurl, glib, nss, nspr, gconf, fontconfig, freetype +, pango , cairo, libX11 , libXi, libXcursor, libXext, libXfixes +, libXrender, libXcomposite , alsaLib, libXdamage, libXtst, libXrandr +, expat, libcap, systemd , dbus, gtk2 , gdk_pixbuf, libnotify +}: + +let + arch = if stdenv.system == "x86_64-linux" then "amd" + else if stdenv.system == "i686-linux" then "i386" + else throw "Encryptr for ${stdenv.system} not supported!"; + + sha256 = if stdenv.system == "x86_64-linux" then "1j3g467g7ar86hpnh6q9mf7mh2h4ia94mwhk1283zh739s2g53q2" + else if stdenv.system == "i686-linux" then "02j9hg9b1jlv25q1sjfhv8d46mii33f94dj0ccn83z9z18q4y2cm" + else throw "Encryptr for ${stdenv.system} not supported!"; + +in stdenv.mkDerivation rec { + name = "encryptr-${version}"; + version = "2.0.0"; + + src = fetchurl { + url = "https://spideroak.com/dist/encryptr/signed/linux/targz/encryptr-${version}_${arch}.tar.gz"; + inherit sha256; + }; + + dontBuild = true; + + rpath = stdenv.lib.makeLibraryPath [ + glib nss nspr gconf fontconfig freetype pango cairo libX11 libXi + libXcursor libXext libXfixes libXrender libXcomposite alsaLib + libXdamage libXtst libXrandr expat libcap dbus gtk2 gdk_pixbuf + libnotify stdenv.cc.cc + ]; + + installPhase = '' + mkdir -pv $out/bin $out/lib + cp -v {encryptr-bin,icudtl.dat,nw.pak} $out/bin + mv -v $out/bin/encryptr{-bin,} + cp -v lib* $out/lib + ln -sv ${systemd.lib}/lib/libudev.so.1 $out/lib/libudev.so.0 + + patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ + --set-rpath $out/lib:${rpath} \ + $out/bin/encryptr + ''; + + # If stripping, node-webkit does not find + # its application and shows a generic page + dontStrip = true; + + meta = with stdenv.lib; { + homepage = https://spideroak.com/solutions/encryptr; + description = "Free, private and secure password management tool and e-wallet"; + license = licenses.unfree; + maintainers = with maintainers; [ guillaumekoenig ]; + platform = platforms.linux; + }; +} |