nixpkgs/pkgs/applications/misc/loxodo/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

43 lines
1.1 KiB
Nix

{ lib, python3, fetchFromGitHub }:
python3.pkgs.buildPythonApplication {
pname = "loxodo";
version = "unstable-2021-02-08";
src = fetchFromGitHub {
owner = "sommer";
repo = "loxodo";
rev = "7add982135545817e9b3e2bbd0d27a2763866133";
sha256 = "1cips4pvrqga8q1ibs23vjrf8dwan860x8jvjmc52h6qvvvv60yl";
};
patches = [ ./wxpython.patch ];
propagatedBuildInputs = with python3.pkgs; [ six wxpython ];
postInstall = ''
mv $out/bin/loxodo.py $out/bin/loxodo
mkdir -p $out/share/applications
cat > $out/share/applications/loxodo.desktop <<EOF
[Desktop Entry]
Type=Application
Exec=$out/bin/loxodo
Icon=$out/${python3.sitePackages}/resources/loxodo-icon.png
Name=Loxodo
GenericName=Password Vault
Categories=Application;Other;
EOF
'';
doCheck = false; # Tests are interactive.
meta = with lib; {
description = "Password Safe V3 compatible password vault";
mainProgram = "loxodo";
homepage = "https://www.christoph-sommer.de/loxodo/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}