diff options
author | Andrew Morsillo <andrew@peeramid.org> | 2013-06-09 23:17:09 +0200 |
---|---|---|
committer | Andrew Morsillo <andrew@peeramid.org> | 2013-06-09 23:17:09 +0200 |
commit | e1bd332758d5a37308cdabc6dfa9eeffdbd7de72 (patch) | |
tree | faf57baf9d2f80cb41e2ec14c68bbb0bdfd01a6b /pkgs/applications/misc/keepass | |
parent | c96c105c5cc9fcac41c2daa00370e106cfdadc81 (diff) |
Added keepass password manager. Updated mono DLLMap to allow mono to run WinForms applications (keepass).
Diffstat (limited to 'pkgs/applications/misc/keepass')
-rw-r--r-- | pkgs/applications/misc/keepass/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/misc/keepass/default.nix b/pkgs/applications/misc/keepass/default.nix new file mode 100644 index 0000000000000..0098e626b4242 --- /dev/null +++ b/pkgs/applications/misc/keepass/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchurl, unzip, makeDesktopItem, mono }: + +stdenv.mkDerivation rec { + name = "keepass-${version}"; + version = "2.22"; + + src = fetchurl { + url = "mirror://sourceforge/keepass/KeePass-${version}.zip"; + sha256 = "0mman7r1jmirfwzix5qww0yn4rrgzcg7546basxjvvfc8flp43j0"; + }; + + sourceRoot = "."; + + phases = [ "unpackPhase" "installPhase" ]; + + desktopItem = makeDesktopItem { + name = "keepass"; + exec = "keepass"; + comment = "Password manager"; + desktopName = "Keepass"; + genericName = "Password manager"; + categories = "Application;Other;"; + }; + + + installPhase = '' + ensureDir "$out/bin" + echo "${mono}/bin/mono $out/KeePass.exe" > $out/bin/keepass + chmod +x $out/bin/keepass + echo $out + cp -r ./* $out/ + ensureDir "$out/share/applications" + 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; + }; +} |