diff options
author | ckie <25263210+ckiee@users.noreply.github.com> | 2022-06-25 20:41:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 20:41:20 +0300 |
commit | d3ec37479d1aa00242695ef3f19865bf63b1b21e (patch) | |
tree | c0602594548026e78d48f5ca9f42dfd54065a91a | |
parent | c48e4d483d51b8c7023931315b21f848d6bb3392 (diff) | |
parent | 5efa54db61ec1360c8998884bd08ff520d5790f8 (diff) | |
download | nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.tar nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.tar.gz nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.tar.bz2 nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.tar.lz nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.tar.xz nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.tar.zst nixpkgs-d3ec37479d1aa00242695ef3f19865bf63b1b21e.zip |
Merge pull request #178526 from 0xC45/regpg
regpg: init at 1.11
-rw-r--r-- | maintainers/maintainer-list.nix | 7 | ||||
-rw-r--r-- | pkgs/tools/security/regpg/default.nix | 52 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 61 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 37777799305..4610d1f9a6c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -78,6 +78,13 @@ fingerprint = "2536 9E86 1AA5 9EB7 4C47 B138 6510 870A 77F4 9A99"; }]; }; + _0xC45 = { + email = "jason@0xc45.com"; + name = "Jason Vigil"; + github = "0xC45"; + githubId = 56617252; + matrix = "@oxc45:matrix.org"; + }; _1000101 = { email = "b1000101@pm.me"; github = "1000101"; diff --git a/pkgs/tools/security/regpg/default.nix b/pkgs/tools/security/regpg/default.nix new file mode 100644 index 00000000000..aaefbef227b --- /dev/null +++ b/pkgs/tools/security/regpg/default.nix @@ -0,0 +1,52 @@ +{ lib +, stdenv +, fetchFromGitHub +, makeWrapper +, gnupg +, perl +}: + +let + perlEnv = perl.withPackages (p: with p; [ TextMarkdown ]); +in +stdenv.mkDerivation rec { + pname = "regpg"; + version = "1.11"; + + src = fetchFromGitHub { + owner = "fanf2"; + repo = "regpg"; + rev = "regpg-${version}"; + sha256 = "2ea99950804078190e1cc2a76d4740e3fdd5395a9043db3f3fe86bf2477d3a7d"; + }; + + nativeBuildInputs = [ makeWrapper perlEnv ]; + + postPatch = '' + patchShebangs ./util/insert-here.pl ./util/markdown.pl + substituteInPlace ./Makefile \ + --replace 'util/insert-here.pl' 'perl util/insert-here.pl' + substituteInPlace ./Makefile \ + --replace 'util/markdown.pl' 'perl util/markdown.pl' + substituteInPlace util/insert-here.pl \ + --replace 'qx(git describe)' '"regpg-${version}"' + ''; + + dontConfigure = true; + + makeFlags = [ "prefix=$(out)" ]; + + postFixup = '' + patchShebangs $out/bin/regpg + wrapProgram $out/bin/regpg --prefix PATH ":" \ + "${lib.makeBinPath [ gnupg ]}" + ''; + + meta = with lib; { + description = "GPG wrapper utility for storing secrets in VCS"; + homepage = "https://dotat.at/prog/regpg"; + license = licenses.gpl3; + platforms = platforms.all; + maintainers = with maintainers; [ _0xC45 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5be911608f5..2997d713e04 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9991,6 +9991,8 @@ with pkgs; reftools = callPackage ../development/tools/reftools { }; + regpg = callPackage ../tools/security/regpg { }; + remote-touchpad = callPackage ../tools/inputmethods/remote-touchpad { }; reposurgeon = callPackage ../applications/version-management/reposurgeon { }; |