Files
nixpkgs/pkgs/by-name/ke/keyscope/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

48 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
gitUpdater,
openssl,
pkg-config,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "keyscope";
version = "1.4.0";
src = fetchFromGitHub {
owner = "spectralops";
repo = "keyscope";
tag = "v${version}";
hash = "sha256-2DhKiQixhTCQD/SYIQa+o1kzEsslu6wAReuWr0rTrH8=";
};
cargoHash = "sha256-f4r0zZTkVDfycrGqRCaBQrncpAm0NP6XYkj3w7fzQeY=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# build script tries to get information from git
postPatch = ''
echo "fn main() {}" > build.rs
'';
VERGEN_GIT_SEMVER = "v${version}";
# Test require network access
doCheck = false;
passthru.updateScript = gitUpdater { };
meta = {
description = "Key and secret workflow (validation, invalidation, etc.) tool";
homepage = "https://github.com/spectralops/keyscope";
changelog = "https://github.com/spectralops/keyscope/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "keyscope";
};
}