mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 18:03:59 +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.
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ lib
|
|
, fetchFromGitLab
|
|
, nettle
|
|
, nix-update-script
|
|
, installShellFiles
|
|
, rustPlatform
|
|
, pkg-config
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sequoia-sqop";
|
|
version = "0.35.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "sequoia-pgp";
|
|
# From some reason the repository is not sequoia-sqop - like the command
|
|
# generated etc
|
|
repo = "sequoia-sop";
|
|
rev = "v${version}";
|
|
hash = "sha256-JgLozj9LZwk6TRHj2d4kiq8j3aILBUWaE9ldzvlTBNs=";
|
|
};
|
|
|
|
cargoHash = "sha256-Z0UqJRm4QepMl83zE1TI7g/pc7b9XxUWeaMVVrp0zZ8=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
nettle
|
|
];
|
|
buildFeatures = [ "cli" ];
|
|
|
|
# Install manual pages
|
|
postInstall = ''
|
|
mkdir -p $out/share/man
|
|
cp -r man-sqop $out/share/man/man1
|
|
installShellCompletion --cmd sqop \
|
|
--bash target/*/release/build/sequoia-sop*/out/sqop.bash \
|
|
--fish target/*/release/build/sequoia-sop*/out/sqop.fish \
|
|
--zsh target/*/release/build/sequoia-sop*/out/_sqop
|
|
# Also elv and powershell are generated there
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Implementation of the Stateless OpenPGP Command Line Interface using Sequoia";
|
|
homepage = "https://docs.sequoia-pgp.org/sqop/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
mainProgram = "sqop";
|
|
};
|
|
}
|