mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
26 lines
580 B
Nix
26 lines
580 B
Nix
{ stdenv
|
|
, fetchurl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "polytopes_db";
|
|
version = "20170220";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sageupstream/${pname}/${pname}-${version}.tar.bz2";
|
|
sha256 = "1q0cd811ilhax4dsj9y5p7z8prlalqr7k9mzq178c03frbgqny6b";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/share/reflexive_polytopes"
|
|
cp -R * "$out/share/reflexive_polytopes/"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Reflexive polytopes database";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ timokau ];
|
|
};
|
|
}
|