-
-
Save LnL7/7e705ea7f4099c074a004c897810bc73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import nixpkgs {} | |
, nixpkgs ? builtins.fetchTarball { | |
url = "https://releases.nixos.org/nixpkgs/nixpkgs-20.03pre207249.7e8454fb856/nixexprs.tar.xz"; | |
sha256 = "1rdnhpvnchmws86lr6dq6bj14b166gnpj7n1sy6ps19vnmj6xfq9"; | |
} | |
}: | |
pkgs.hello.overrideDerivation (drv: { | |
NIX_LDFLAGS = "-sdk_version 10.12 -no_uuid"; | |
}) | |
# $ nix-build | |
# /nix/store/8hvs8qk777cnvpsaj4paxaxyihrhwiw8-hello-2.10 | |
# $ shasum -a256 result/bin/hello | |
# 078a7d9382c87753de2c2d4a25538dc0ed8a059cc8b5481a4d6df381abc2397b result/bin/hello | |
# $ otool -l result/bin/hello | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment