summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/signing-utils/default.nix
blob: 035ac59b725aee318162094f82461d1e0d9f0551 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenvNoCC
, sigtool
, cctools
}:

let
  stdenv = stdenvNoCC;
in

stdenv.mkDerivation {
  name = "signing-utils";

  dontUnpack = true;
  dontConfigure = true;
  dontBuild = true;

  installPhase = ''
    substituteAll ${./utils.sh} $out
  '';

  # Substituted variables
  inherit sigtool;
  codesignAllocate = "${cctools}/bin/${cctools.targetPrefix}codesign_allocate";
}