2020-08-12 19:21:10 +01:00
|
|
|
{ stdenv, lib, fetchurl, glib, nss, nspr, gconf, fontconfig, freetype
|
2016-11-07 07:38:34 +00:00
|
|
|
, pango , cairo, libX11 , libXi, libXcursor, libXext, libXfixes
|
|
|
|
, libXrender, libXcomposite , alsaLib, libXdamage, libXtst, libXrandr
|
2019-05-22 12:03:39 +01:00
|
|
|
, expat, libcap, systemd , dbus, gtk2 , gdk-pixbuf, libnotify
|
2016-11-07 07:38:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2018-08-20 20:11:29 +01:00
|
|
|
arch = if stdenv.hostPlatform.system == "x86_64-linux" then "amd"
|
|
|
|
else if stdenv.hostPlatform.system == "i686-linux" then "i386"
|
|
|
|
else throw "Encryptr for ${stdenv.hostPlatform.system} not supported!";
|
2016-11-07 07:38:34 +00:00
|
|
|
|
2018-08-20 20:11:29 +01:00
|
|
|
sha256 = if stdenv.hostPlatform.system == "x86_64-linux" then "1j3g467g7ar86hpnh6q9mf7mh2h4ia94mwhk1283zh739s2g53q2"
|
|
|
|
else if stdenv.hostPlatform.system == "i686-linux" then "02j9hg9b1jlv25q1sjfhv8d46mii33f94dj0ccn83z9z18q4y2cm"
|
|
|
|
else throw "Encryptr for ${stdenv.hostPlatform.system} not supported!";
|
2016-11-07 07:38:34 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "encryptr";
|
2016-11-07 07:38:34 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://spideroak.com/dist/encryptr/signed/linux/targz/encryptr-${version}_${arch}.tar.gz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
rpath = lib.makeLibraryPath [
|
2016-11-07 07:38:34 +00:00
|
|
|
glib nss nspr gconf fontconfig freetype pango cairo libX11 libXi
|
|
|
|
libXcursor libXext libXfixes libXrender libXcomposite alsaLib
|
2019-05-22 12:03:39 +01:00
|
|
|
libXdamage libXtst libXrandr expat libcap dbus gtk2 gdk-pixbuf
|
2016-11-07 07:38:34 +00:00
|
|
|
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
|
2020-08-12 19:21:10 +01:00
|
|
|
ln -sv ${lib.getLib systemd}/lib/libudev.so.1 $out/lib/libudev.so.0
|
2016-11-07 07:38:34 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://spideroak.com/solutions/encryptr";
|
2016-11-07 07:38:34 +00:00
|
|
|
description = "Free, private and secure password management tool and e-wallet";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ guillaumekoenig ];
|
2017-05-03 00:14:03 +01:00
|
|
|
platforms = platforms.linux;
|
2016-11-07 07:38:34 +00:00
|
|
|
};
|
|
|
|
}
|