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
with import <nixpkgs> { }; | |
enableDebugging (glibc.overrideAttrs (o: { | |
preConfigure = o.preConfigure + '' | |
export CFLAGS="-Wno-error=maybe-uninitialized $CFLAGS" | |
''; | |
})) |
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
$ ldd $(which bash) | |
linux-vdso.so.1 (0x00007ffd8e5e8000) | |
/lib/x86_64-linux-gnu/libnss_cache.so.2 (0x00007fb4d70fa000) | |
libdl.so.2 => /nix/store/vjq3q7dq8vmc13c3py97v27qwizvq7fd-glibc-2.33-59/lib/libdl.so.2 (0x00007fb4d70f5000) | |
libc.so.6 => /nix/store/vjq3q7dq8vmc13c3py97v27qwizvq7fd-glibc-2.33-59/lib/libc.so.6 (0x00007fb4d6f30000) | |
/nix/store/vjq3q7dq8vmc13c3py97v27qwizvq7fd-glibc-2.33-59/lib/ld-linux-x86-64.so.2 => /nix/store/vjq3q7dq8vmc13c3py97v27qwizvq7fd-glibc-2.33-59/lib64/ld-linux-x86-64.so.2 (0x00007fb4d7103000) | |
$ /nix/store/vjq3q7dq8vmc13c3py97v27qwizvq7fd-glibc-2.33-59/lib/ld-linux-x86-64.so.2 --list $(which bash) | |
linux-vdso.so.1 (0x00007ffec849c000) | |
/lib/x86_64-linux-gnu/libnss_cache.so.2 (0x00007f5003e00000) |
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
#!/usr/bin/env ruby | |
require 'find' | |
require 'elftools' | |
# ldd /nix/store/5v13hyafx34x5sksfr4ifwc6mbpvx3yy-chromium-unwrapped-92.0.4515.107/libexec/chromium/chromium | grep -oE "/nix/store/.* " | |
ENTRIES = "/nix/store/cvr0kjg2q7z2wwhjblx6c73rv422k8cm-glibc-2.33-47/lib/libdl.so.2 | |
/nix/store/cvr0kjg2q7z2wwhjblx6c73rv422k8cm-glibc-2.33-47/lib/libpthread.so.0 | |
/nix/store/4fzxscwhxb1q1jrxg0p3g5c9dgxvlp59-glib-2.68.3/lib/libgobject-2.0.so.0 | |
/nix/store/4fzxscwhxb1q1jrxg0p3g5c9dgxvlp59-glib-2.68.3/lib/libglib-2.0.so.0 | |
/nix/store/alrr12qahbxbksi9lhh300s7f83kb7hq-nss-3.68/lib64/libsmime3.so |
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
#!/usr/bin/env ruby | |
require 'find' | |
require 'elftools' | |
STORE = "/nix/store" | |
puts "Searching /nix/store for rpath entries." | |
seen = 0 | |
current = "" |
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
diff --git a/Makefile b/Makefile | |
index 5040d2884..ac29e2526 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -27,11 +27,14 @@ makefiles = \ | |
OPTIMIZE = 1 | |
ifeq ($(OPTIMIZE), 1) | |
- GLOBAL_CXXFLAGS += -O3 | |
+ GLOBAL_CXXFLAGS += -O1 |
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
diff --git a/flake.nix b/flake.nix | |
index fd5e18429..a9248ef90 100644 | |
--- a/flake.nix | |
+++ b/flake.nix | |
@@ -1,5 +1,6 @@ | |
{ | |
description = "The purely functional package manager"; | |
+ # make a change to ruin the binary cache | |
inputs.nixpkgs.url = "nixpkgs/nixos-21.05-small"; |
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
diff --git a/Makefile b/Makefile | |
index 5040d2884..ac29e2526 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -27,11 +27,14 @@ makefiles = \ | |
OPTIMIZE = 1 | |
ifeq ($(OPTIMIZE), 1) | |
- GLOBAL_CXXFLAGS += -O3 | |
+ GLOBAL_CXXFLAGS += -O1 |
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
let | |
nixpkgs = import (builtins.fetchTarball { | |
name = "nixos-unstable-2020-09-24"; | |
url = | |
"https://github.com/nixos/nixpkgs/archive/8ecc61c91a596df7d3293603a9c2384190c1b89a.tar.gz"; | |
sha256 = "0vhajylsmipjkm5v44n2h0pglcmpvk4mkyvxp7qfvkjdxw21dyml"; | |
}) { }; | |
stdenvMinimal = nixpkgs.stdenvNoCC.override { | |
cc = null; | |
preHook = ""; |
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
[nix-shell:~/code/nix/playground]$ echo $PATH | tr : '\n' | |
/nix/store/fgbzvd4c6nly9m4dpczrxybdpkm8mnk3-bash-interactive-4.4-p23/bin | |
/nix/store/hicfsj7pp72fc96vp1mqjb0qjzf8fiik-patchelf-0.12/bin | |
/nix/store/nvlnl2swxmk50x25mzn71rhc0gzpylfr-coreutils-8.32/bin | |
/nix/store/f67dl43kggvml0mnrdcasqh0fw2lx5xr-findutils-4.7.0/bin | |
/nix/store/mbahsiqqj61wjyh2yyzflxpf35hdpjbz-diffutils-3.7/bin | |
/nix/store/b3l5zq2nkhfpqrr0lil06dhqyjf5jz38-gnused-4.8/bin | |
/nix/store/7lkzid5yncibabddzaw4sj13n342jz1s-gnugrep-3.6/bin | |
/nix/store/b27wld0aqcdspznhxwgmr6cs67kg9lk3-gawk-5.1.0/bin | |
/nix/store/i92f6n6mb65fzpppl3h4vbm3a2rfyb5n-gnutar-1.34/bin |
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
fixupOutputHooks+=(autoStripNonDeterminism) | |
autoStripNonDeterminism() { | |
find $output -type f \ | |
-exec strip-nondeterminism {} | |
} |