mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
43 lines
1.1 KiB
Nix
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 = [ ];
|
|
};
|
|
}
|