dawn: provide path to wish for the GUI

This commit is contained in:
Dmitry Kalinkin 2022-10-22 22:04:23 -04:00
parent 5375f83194
commit 62b5fa807f

View file

@ -1,6 +1,8 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchurl
, tk
, makeWrapper
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -18,12 +20,19 @@ stdenv.mkDerivation rec {
--replace 'INSTALL_DIR =' "INSTALL_DIR = $out/bin#" --replace 'INSTALL_DIR =' "INSTALL_DIR = $out/bin#"
''; '';
nativeBuildInputs = [ makeWrapper ];
dontConfigure = true; dontConfigure = true;
preInstall = '' preInstall = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
''; '';
postInstall = ''
wrapProgram "$out/bin/DAWN_GUI" \
--prefix PATH : ${lib.makeBinPath [ tk ]}
'';
meta = with lib; { meta = with lib; {
description = "A vectorized 3D PostScript processor with analytical hidden line/surface removal"; description = "A vectorized 3D PostScript processor with analytical hidden line/surface removal";
license = licenses.unfree; license = licenses.unfree;