2015-06-04 07:43:00 +01:00
|
|
|
{ stdenv, python27Packages, fetchgit }:
|
|
|
|
let
|
|
|
|
py = python27Packages;
|
|
|
|
python = py.python;
|
|
|
|
in
|
2016-02-19 12:12:11 +00:00
|
|
|
py.buildPythonApplication rec {
|
2015-06-04 07:43:00 +01:00
|
|
|
name = "loxodo-0.20150124";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/sommer/loxodo.git";
|
|
|
|
rev = "6c56efb4511fd6f645ad0f8eb3deafc8071c5795";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1cg0dfcv57ps54f1a0ksib7hgkrbdi9q699w302xyyfyvjcb5dd2";
|
2015-06-04 07:43:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with py; [ wxPython python.modules.readline ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/loxodo.py $out/bin/loxodo
|
2015-06-04 05:32:17 +01:00
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cat > $out/share/applications/loxodo.desktop <<EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Type=Application
|
|
|
|
Exec=$out/bin/loxodo
|
|
|
|
Icon=$out/lib/${python.libPrefix}/site-packages/resources/loxodo-icon.png
|
|
|
|
Name=Loxodo
|
|
|
|
GenericName=Password Vault
|
|
|
|
Categories=Application;Other;
|
|
|
|
EOF
|
2015-06-04 07:43:00 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Password Safe V3 compatible password vault";
|
|
|
|
homepage = http://www.christoph-sommer.de/loxodo/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|