Skip to content

Instantly share code, notes, and snippets.

@tilpner

tilpner/shell Secret

Last active April 11, 2019 20:19
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 tilpner/dbb9b1e9ce406c2b7408098b144300fa to your computer and use it in GitHub Desktop.
Save tilpner/dbb9b1e9ce406c2b7408098b144300fa to your computer and use it in GitHub Desktop.
~/dev/foo/nix > nix-build --no-out-link weird.nix
these derivations will be built:
/nix/store/vs258nla6s2pw9zgnpg0l7dcjc28gpvg-weird.drv
building '/nix/store/vs258nla6s2pw9zgnpg0l7dcjc28gpvg-weird.drv'...
unpacking sources
unpacking source archive /nix/store/ndqhrldc89207rqi8mda8nz6lj4vdpq9-newsboat-2.15.tar.xz
source root is newsboat-2.15
setting SOURCE_DATE_EPOCH to timestamp 1553359864 of file newsboat-2.15/txt2h
installing
/nix/store/iy24hzgrx181c6drqy2qmldmgihhsp53-weird
~/dev/foo/nix > nix-store --delete /nix/store/iy24hzgrx181c6drqy2qmldmgihhsp53-weird
finding garbage collector roots...
removing stale link from '/nix/var/nix/gcroots/auto/9vmxbpm6s4hmhy3pcm37j5kix8s64473' to '/tmp/nix-build-25614-0/result'
deleting '/nix/store/iy24hzgrx181c6drqy2qmldmgihhsp53-weird'
deleting '/nix/store/trash'
deleting unused links...
note: currently hard linking saves 3718.13 MiB
1 store paths deleted, 0.00 MiB freed
~/dev/foo/nix > sudo nix-build --no-out-link weird.nix
these derivations will be built:
/nix/store/vs258nla6s2pw9zgnpg0l7dcjc28gpvg-weird.drv
building '/nix/store/vs258nla6s2pw9zgnpg0l7dcjc28gpvg-weird.drv'...
unpacking sources
unpacking source archive /nix/store/ndqhrldc89207rqi8mda8nz6lj4vdpq9-newsboat-2.15.tar.xz
do not know how to unpack source archive /nix/store/ndqhrldc89207rqi8mda8nz6lj4vdpq9-newsboat-2.15.tar.xz
builder for '/nix/store/vs258nla6s2pw9zgnpg0l7dcjc28gpvg-weird.drv' failed with exit code 1
error: build of '/nix/store/vs258nla6s2pw9zgnpg0l7dcjc28gpvg-weird.drv' failed
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "weird";
src = fetchurl {
url = https://newsboat.org/releases/2.15/newsboat-2.15.tar.xz;
sha256 = "1dqdcp34jmphqf3d8ik0xdhg0s66nd5rky0y8y591nidq29wws6s";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = "echo done > $out";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment