Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created January 3, 2019 19:24
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 grahamc/0745009e3e6c9beb5f99865090bd0f6b to your computer and use it in GitHub Desktop.
Save grahamc/0745009e3e6c9beb5f99865090bd0f6b to your computer and use it in GitHub Desktop.
[grahamc@Morbo:~]$ nix-build -E "with (import <nixpkgs> {}); stdenv.mkDerivation { name = ''foo''; src = /etc/nixos; buildInputs = [git]; configurePhase = ''git status''; }"
these derivations will be built:
/nix/store/ii7579l1vaqkr44mcrjv594wa54js45k-foo.drv
building '/nix/store/ii7579l1vaqkr44mcrjv594wa54js45k-foo.drv'...
unpacking sources
unpacking source archive /nix/store/0bzfny5a911vm2zp3d7kxd3mn4vw3x2b-nixos
source root is nixos
patching sources
configuring
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: packages/emacs/default.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment