nixpkgs/pkgs/tools/security/signify/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
951 B
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, stdenv, fetchFromGitHub, libbsd, pkg-config }:
2018-10-25 21:08:49 +02:00
stdenv.mkDerivation rec {
pname = "signify";
2021-01-21 11:49:15 +01:00
version = "30";
2018-10-25 21:08:49 +02:00
src = fetchFromGitHub {
owner = "aperezdc";
repo = "signify";
rev = "v${version}";
2021-01-21 11:49:15 +01:00
sha256 = "02xh6x6rszkvk3rf6zai7n3ivchmw0d8mwllpinjxc7k6sd415c3";
2018-10-25 21:08:49 +02:00
};
doCheck = true;
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ pkg-config ];
2018-10-25 21:08:49 +02:00
buildInputs = [ libbsd ];
2022-02-21 07:59:53 +01:00
postPatch = ''
substituteInPlace Makefile --replace "shell pkg-config" "shell $PKG_CONFIG"
2018-10-25 21:08:49 +02:00
'';
2022-02-21 07:59:53 +01:00
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
2018-10-25 21:08:49 +02:00
description = "OpenBSD signing tool";
longDescription = ''
OpenBSDs signing tool, which uses the Ed25519 public key signature system
for fast signing and verification of messages using small public keys.
'';
homepage = "https://www.tedunangst.com/flak/post/signify";
2018-10-25 21:08:49 +02:00
license = licenses.isc;
maintainers = [ maintainers.rlupton20 ];
platforms = platforms.linux;
};
}