depot/third_party/nixpkgs/pkgs/applications/science/physics/dawn/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

34 lines
830 B
Nix

{ lib
, stdenv
, fetchurl
}:
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#"
'';
dontConfigure = true;
preInstall = ''
mkdir -p "$out/bin"
'';
meta = with lib; {
description = "A 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 ];
};
}