dawncut: init at 1.54a

This commit is contained in:
Dmitry Kalinkin 2022-10-22 21:52:40 -04:00
parent 8ac43eab7f
commit 5375f83194
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchurl
}:
stdenv.mkDerivation rec {
pname = "dawncut";
version = "1.54a";
src = fetchurl {
name = "${pname}-${version}.tar.gz";
url = "https://geant4.kek.jp/~tanaka/src/dawncut_${builtins.replaceStrings ["."] ["_"] version}.taz";
hash = "sha256-Ux4fDi7TXePisYAxCMDvtzLYOgxnbxQIO9QacTRrT6k=";
};
postPatch = ''
substituteInPlace Makefile.architecture \
--replace 'CXX := g++' ""
'';
dontConfigure = true;
NIX_CFLAGS_COMPILE="-std=c++98";
installPhase = ''
runHook preInstall
install -Dm 500 dawncut "$out/bin/dawncut"
runHook postInstall
'';
meta = with lib; {
description = "A tool to generate a 3D scene data clipped with an arbitrary plane";
license = licenses.unfree;
homepage = "https://geant4.kek.jp/~tanaka/DAWN/About_DAWNCUT.html";
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
};
}

View File

@ -35431,6 +35431,8 @@ with pkgs;
dawn = callPackage ../applications/science/physics/dawn {}; dawn = callPackage ../applications/science/physics/dawn {};
dawncut = callPackage ../applications/science/physics/dawncut {};
elmerfem = callPackage ../applications/science/physics/elmerfem {}; elmerfem = callPackage ../applications/science/physics/elmerfem {};
mcfm = callPackage ../applications/science/physics/MCFM { mcfm = callPackage ../applications/science/physics/MCFM {