4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
32 lines
867 B
Nix
32 lines
867 B
Nix
{ lib, stdenv, fetchurl, qt4, qwt6_qt4, libGLU, libGL, glew, gdal, cgal
|
|
, proj, boost, cmake, python2, doxygen, graphviz, gmp, mpfr }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gplates";
|
|
version = "2.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/gplates/${pname}-${version}-unixsrc.tar.bz2";
|
|
sha256 = "1jrcv498vpcs8xklhbsgg12yfa90f96p2mwq6x5sjnrlpf8mh50b";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [
|
|
qt4 qwt6_qt4 libGLU libGL glew gdal cgal proj python2
|
|
doxygen graphviz gmp mpfr
|
|
(boost.override {
|
|
enablePython = true;
|
|
python = python2;
|
|
})
|
|
];
|
|
|
|
NIX_CFLAGS_LINK="-ldl -lpthread -lutil";
|
|
|
|
meta = with lib; {
|
|
description = "Desktop software for the interactive visualisation of plate-tectonics";
|
|
homepage = "https://www.gplates.org";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|