Merge pull request #197306 from veprbl/pr/dawncut_init
dawncut: init at 1.54a
This commit is contained in:
commit
cde19b8469
3 changed files with 51 additions and 0 deletions
|
@ -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;
|
||||
|
|
40
pkgs/applications/science/physics/dawncut/default.nix
Normal file
40
pkgs/applications/science/physics/dawncut/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -35441,6 +35441,8 @@ with pkgs;
|
|||
|
||||
dawn = callPackage ../applications/science/physics/dawn {};
|
||||
|
||||
dawncut = callPackage ../applications/science/physics/dawncut {};
|
||||
|
||||
elmerfem = callPackage ../applications/science/physics/elmerfem {};
|
||||
|
||||
mcfm = callPackage ../applications/science/physics/MCFM {
|
||||
|
|
Loading…
Reference in a new issue