mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23: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.
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ fetchFromGitHub, lib, python3Packages, gnupg, perl }:
|
|
|
|
let version = "3.0.0"; in
|
|
python3Packages.buildPythonApplication {
|
|
pname = "pius";
|
|
namePrefix = "";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jaymzh";
|
|
repo = "pius";
|
|
rev = "v${version}";
|
|
sha256 = "0l87dx7n6iwy8alxnhvval8h1kl4da6a59hsilbi65c6bpj4dh3y";
|
|
};
|
|
|
|
patchPhase = ''
|
|
for file in libpius/constants.py pius-keyring-mgr; do
|
|
sed -i "$file" -E -e's|/usr/bin/gpg2?|${gnupg}/bin/gpg|g'
|
|
done
|
|
'';
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
meta = {
|
|
homepage = "https://www.phildev.net/pius/";
|
|
|
|
description = "PGP Individual UID Signer (PIUS), quickly and easily sign UIDs on a set of PGP keys";
|
|
|
|
longDescription = ''
|
|
This software will allow you to quickly and easily sign each UID on
|
|
a set of PGP keys. It is designed to take the pain out of the
|
|
sign-all-the-keys part of PGP Keysigning Party while adding security
|
|
to the process.
|
|
'';
|
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|