Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created January 6, 2020 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/7e705ea7f4099c074a004c897810bc73 to your computer and use it in GitHub Desktop.
Save LnL7/7e705ea7f4099c074a004c897810bc73 to your computer and use it in GitHub Desktop.
{ 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