diff options
author | Andrew Childs <lorne@cons.org.nz> | 2020-11-19 16:41:41 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2021-05-17 00:27:02 +0900 |
commit | 4c890ce9aa557cbae67fb571687d74af8cc9e73a (patch) | |
tree | 3df7631ba989db3bd42f5ee0112321aa40159520 /pkgs/os-specific | |
parent | a7bcb6b93683dd9e2bbaabd8f06d56a2301f3410 (diff) | |
download | nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.tar nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.tar.gz nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.tar.bz2 nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.tar.lz nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.tar.xz nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.tar.zst nixpkgs-4c890ce9aa557cbae67fb571687d74af8cc9e73a.zip |
darwin.sigtool: init
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/darwin/sigtool/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/sigtool/default.nix b/pkgs/os-specific/darwin/sigtool/default.nix new file mode 100644 index 00000000000..933ef784879 --- /dev/null +++ b/pkgs/os-specific/darwin/sigtool/default.nix @@ -0,0 +1,24 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, makeWrapper, openssl }: + +stdenv.mkDerivation { + name = "sigtool"; + + src = fetchFromGitHub { + owner = "thefloweringash"; + repo = "sigtool"; + rev = "4a3719b42dc91c3f513df94048851cc98e7c7fcf"; + sha256 = "04ra1cx7k1sdbkj5yrvl0s3l333vpir8rnm8k1dh2zy1w0a6hpqa"; + }; + + nativeBuildInputs = [ pkg-config makeWrapper ]; + buildInputs = [ openssl ]; + + installFlags = [ "PREFIX=$(out)" ]; + + # Upstream (me) asserts the driver script is optional. + postInstall = '' + substitute $NIX_BUILD_TOP/$sourceRoot/codesign.sh $out/bin/codesign \ + --replace sigtool "$out/bin/sigtool" + chmod a+x $out/bin/codesign + ''; +} |