mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
sigtool: 4a3719b4 -> 2a13539d (#138453)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
714fdd6f38
commit
470466fdbd
@ -1,24 +1,18 @@
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, cmake, makeWrapper, openssl }:
|
||||
{ lib, stdenv, fetchFromGitHub, pkg-config, openssl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "sigtool";
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "sigtool";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thefloweringash";
|
||||
repo = "sigtool";
|
||||
rev = "4a3719b42dc91c3f513df94048851cc98e7c7fcf";
|
||||
sha256 = "04ra1cx7k1sdbkj5yrvl0s3l333vpir8rnm8k1dh2zy1w0a6hpqa";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-GSVkF1BkZEkIF+q0SsoCuE0q48DRclE3E+qKc6JEc/0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config makeWrapper ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
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
|
||||
'';
|
||||
}
|
||||
|
@ -268,6 +268,12 @@ rec {
|
||||
${bootstrapTools}/bin/codesign > $out/bin/codesign
|
||||
chmod a+x $out/bin/codesign
|
||||
'';
|
||||
# on next bootstrap tools update, use the following:
|
||||
# installPhase = ''
|
||||
# mkdir -p $out/bin
|
||||
# ln -s ${bootstrapTools}/bin/sigtool $out/bin
|
||||
# ln -s ${bootstrapTools}/bin/codesign $out/bin
|
||||
# '';
|
||||
};
|
||||
|
||||
print-reexports = stdenv.mkDerivation {
|
||||
|
@ -206,7 +206,7 @@ in rec {
|
||||
done
|
||||
|
||||
for i in $out/bin/*; do
|
||||
if test -x "$i" -a ! -L "$i" -a "$(basename $i)" != codesign; then
|
||||
if test -x "$i" -a ! -L "$i"; then
|
||||
echo "Adding @executable_path to rpath in $i"
|
||||
${stdenv.cc.targetPrefix}install_name_tool -add_rpath '@executable_path/../lib' $i
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user