diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-10-15 16:53:45 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-10-15 16:53:45 +0000 |
commit | 2ea3e03077a1503611ac8712973585d64b4f16a9 (patch) | |
tree | 3ef19fac239294b9a69cf1b87be7d50814c2dd99 /pkgs/applications/audio | |
parent | ea9a9e5faea3e9a46d92a38c35eb230a87dad6b7 (diff) |
Snd: Don't expect /tmp to be writable.
svn path=/nixpkgs/trunk/; revision=17834
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/snd/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/audio/snd/default.nix b/pkgs/applications/audio/snd/default.nix index 8d937afeec7e..1eb62fbd3633 100644 --- a/pkgs/applications/audio/snd/default.nix +++ b/pkgs/applications/audio/snd/default.nix @@ -46,9 +46,10 @@ rec { '' ["defEnsureDir"]; preBuild = fullDepEntry ('' - cp config.log /tmp/snd-config.log + if [ -d /tmp ] && [ -w /tmp ]; then + cp -v config.log /tmp/snd-config.log + fi export NIX_LDFLAGS="$NIX_LDFLAGS -L${args.libX11}/lib -lX11" - '') ["minInit" "doUnpack" "makeDocsWork"]; name = "Snd-" + version; |