1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/physics/hepmc3/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

29 lines
827 B
Nix

{ stdenv, fetchurl, cmake, coreutils, root }:
stdenv.mkDerivation rec {
pname = "hepmc3";
version = "3.1.1";
src = fetchurl {
url = "http://hepmc.web.cern.ch/hepmc/releases/HepMC3-${version}.tar.gz";
sha256 = "1fs8ha5issls886g03azpwamry1k633zjrcx51v7g7vg9nbckjrg";
};
buildInputs = [ cmake root ];
postInstall = ''
substituteInPlace "$out"/bin/HepMC3-config \
--replace 'greadlink' '${coreutils}/bin/readlink'
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "The HepMC package is an object oriented, C++ event record for High Energy Physics Monte Carlo generators and simulation";
license = licenses.gpl3;
homepage = http://hepmc.web.cern.ch/hepmc/;
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
};
}