Created
February 26, 2021 01:38
-
-
Save grahamc/fa7b3cf853f1ab8daa71c0cf467fbb9c 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
#!/bin/sh | |
export NIX_REMOTE= | |
export NIX_REMOTE_SYSTEMS= | |
export NIX_CONF_DIR="$PWD/local/nix/etc/nix" | |
export NIX_STATE_DIR="$PWD/local/nix/var/nix" | |
export NIX_MANIFESTS_DIR="$PWD/local/nix/var/nix/manifests" | |
export NIX_STORE_DIR="$PWD/local/nix/store" | |
export NIX_LOG_DIR="$PWD/local/nix/var/log/nix" | |
export NIX_BUILD_HOOK= | |
cat <<EOF >$NIX_CONF_DIR/nix.conf | |
sandbox = false | |
experimental-features = nix-command | |
EOF | |
nix-build -E '(import <nixpkgs> {}).hello.overrideAttrs (_: { foo = builtins.currentTime;})' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment