From 6b35f37005eeb9ba5813f66338fc7040a4671617 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 13 Jun 2014 01:22:44 +0400 Subject: [PATCH] Fix dia when run not from $PATH --- pkgs/applications/graphics/dia/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/dia/default.nix b/pkgs/applications/graphics/dia/default.nix index 1ec9e1d1c0d1..126ade61c19d 100644 --- a/pkgs/applications/graphics/dia/default.nix +++ b/pkgs/applications/graphics/dia/default.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { mv dia .dia-wrapped echo '#! ${stdenv.shell}' >> dia echo 'test -f "$HOME/.dia/persistence" || cp ${correctPersistence} "$HOME/.dia/persistence" ' >> dia - echo '.dia-wrapped "$@"' >> dia + echo "\"$out/bin/"'.dia-wrapped" "$@"' >> dia chmod a+x dia '';