14 stdenv.mkDerivation rec {
16 version = "1.20220610";
18 src = fetchFromGitHub {
19 owner = "stackexchange";
22 hash = "sha256-g0oNV7Nj7ZMmsVQFVTDwbKtF4a/Fb3WDB+NRx9IGSWA=";
25 buildInputs = [ gnupg ];
27 # https://github.com/NixOS/nixpkgs/issues/134445
28 doCheck = !stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;
41 patchShebangs bin tools
42 substituteInPlace Makefile \
43 --replace "PREFIX?=/usr/local" "PREFIX=$out"
45 substituteInPlace tools/confidence_test.sh \
46 --replace 'PATH="''${blackbox_home}:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/local/bin:/usr/pkg/bin:/usr/pkg/gnu/bin:/usr/local/MacGPG2/bin:/opt/homebrew/bin:''${blackbox_home}"' \
47 "PATH=/build/source/bin/:$PATH"
58 description = "Safely store secrets in a VCS repo";
59 maintainers = with maintainers; [ ericsagnes ];
60 license = licenses.mit;
61 platforms = platforms.all;