From 62b5fa807f34e70a3a7a452f81c50d3041d0419e Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Sat, 22 Oct 2022 22:04:23 -0400 Subject: dawn: provide path to wish for the GUI --- pkgs/applications/science/physics/dawn/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs/applications/science/physics') diff --git a/pkgs/applications/science/physics/dawn/default.nix b/pkgs/applications/science/physics/dawn/default.nix index 609a0e1c4cd3..c174d4c0720f 100644 --- a/pkgs/applications/science/physics/dawn/default.nix +++ b/pkgs/applications/science/physics/dawn/default.nix @@ -1,6 +1,8 @@ { lib , stdenv , fetchurl +, tk +, makeWrapper }: stdenv.mkDerivation rec { @@ -18,12 +20,19 @@ stdenv.mkDerivation rec { --replace 'INSTALL_DIR =' "INSTALL_DIR = $out/bin#" ''; + nativeBuildInputs = [ makeWrapper ]; + dontConfigure = true; preInstall = '' mkdir -p "$out/bin" ''; + postInstall = '' + wrapProgram "$out/bin/DAWN_GUI" \ + --prefix PATH : ${lib.makeBinPath [ tk ]} + ''; + meta = with lib; { description = "A vectorized 3D PostScript processor with analytical hidden line/surface removal"; license = licenses.unfree; -- cgit 1.4.1