Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1022 B
Nix
47 lines
1022 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
tk,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dawn";
|
|
version = "3.91a";
|
|
|
|
src = fetchurl {
|
|
url = "https://geant4.kek.jp/~tanaka/src/dawn_${
|
|
builtins.replaceStrings [ "." ] [ "_" ] version
|
|
}.tgz";
|
|
hash = "sha256-gdhV6tERdoGxiCQt0L46JOAF2b1AY/0r2pp6eU689fQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace 'CC =' 'CC = $(CXX) #' \
|
|
--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 = "Vectorized 3D PostScript processor with analytical hidden line/surface removal";
|
|
license = licenses.unfree;
|
|
homepage = "https://geant4.kek.jp/~tanaka/DAWN/About_DAWN.html";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|