about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2013-06-13 17:12:43 +0400
committerMichael Raskin <7c6f434c@mail.ru>2013-06-13 17:12:43 +0400
commit19530856ed44248c8e14cfc6533b4001318e74d1 (patch)
treec5c03ca92fdc6af84cffa33cfd4906846013443c /pkgs/applications/misc
parentca67fccbfe867c7594e87b9f842dababbe3c7403 (diff)
parent8fe0f0007bb84bafcf5f7209c12c779b24bec7f8 (diff)
downloadnixlib-19530856ed44248c8e14cfc6533b4001318e74d1.tar
nixlib-19530856ed44248c8e14cfc6533b4001318e74d1.tar.gz
nixlib-19530856ed44248c8e14cfc6533b4001318e74d1.tar.bz2
nixlib-19530856ed44248c8e14cfc6533b4001318e74d1.tar.lz
nixlib-19530856ed44248c8e14cfc6533b4001318e74d1.tar.xz
nixlib-19530856ed44248c8e14cfc6533b4001318e74d1.tar.zst
nixlib-19530856ed44248c8e14cfc6533b4001318e74d1.zip
Merge remote-tracking branch 'upstream/master' into x-updates
Conflicts:
	pkgs/development/libraries/cairo/default.nix
	pkgs/development/libraries/gdk-pixbuf/default.nix
	pkgs/development/libraries/gtk+/2.x.nix
	pkgs/misc/ghostscript/default.nix
	pkgs/top-level/all-packages.nix
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/keepass/default.nix45
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 000000000000..0098e626b424
--- /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;
+  };
+}