2013-06-09 23:17:09 +02:00
|
|
|
{ stdenv, fetchurl, unzip, makeDesktopItem, mono }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "keepass-${version}";
|
2015-04-14 09:49:33 +02:00
|
|
|
version = "2.29";
|
2013-06-09 23:17:09 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/keepass/KeePass-${version}.zip";
|
2015-04-14 09:49:33 +02:00
|
|
|
sha256 = "16x7m899akpi036c0wlr41w7fz9q0b69yac9q97rqkixb03l4g9d";
|
2013-06-09 23:17:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "keepass";
|
|
|
|
exec = "keepass";
|
|
|
|
comment = "Password manager";
|
|
|
|
desktopName = "Keepass";
|
|
|
|
genericName = "Password manager";
|
|
|
|
categories = "Application;Other;";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p "$out/bin"
|
2013-06-09 23:17:09 +02:00
|
|
|
echo "${mono}/bin/mono $out/KeePass.exe" > $out/bin/keepass
|
|
|
|
chmod +x $out/bin/keepass
|
|
|
|
echo $out
|
|
|
|
cp -r ./* $out/
|
2014-06-30 14:56:10 +02:00
|
|
|
mkdir -p "$out/share/applications"
|
2013-06-09 23:17:09 +02:00
|
|
|
cp ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "GUI password manager with strong cryptography";
|
|
|
|
homepage = http://www.keepass.info/;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [amorsillo];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|