mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
152b59855d
According to https://reviews.llvm.org/D96164, aarch64-darwin executables require at least an ad hoc signature. The build tool from the racket repo tries to sign $out/bin/racket but errors out, because that binary already has a signature. It is not clear yet at which stage the signature was introduced. This patch removes the existing signature always before calling add-ad-hoc-signature to circumvent that error.
21 lines
678 B
Nix
21 lines
678 B
Nix
{ racket
|
|
}:
|
|
|
|
racket.overrideAttrs (oldAttrs: rec {
|
|
name = "racket-minimal-${oldAttrs.version}";
|
|
src = oldAttrs.src.override {
|
|
inherit name;
|
|
sha256 = "sha256-FZlUWvjtioe4S8gPetj7vdneVX6jEFguJo4j2wJsKAw=";
|
|
};
|
|
|
|
meta = oldAttrs.meta // {
|
|
description = "Racket without bundled packages, such as Dr. Racket";
|
|
longDescription = ''The essential package racket-libs is included,
|
|
as well as libraries that live in collections. In particular, raco
|
|
and the pkg library are still bundled.
|
|
'';
|
|
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
|
broken = false; # Minimal build does not require working FFI
|
|
};
|
|
})
|