Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 25 lines 704 B view raw
1{ stdenv, fetchurl, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "plplot"; 5 version = "5.15.0"; 6 7 src = fetchurl { 8 url = "https://downloads.sourceforge.net/project/${pname}/${pname}/${version}%20Source/${pname}-${version}.tar.gz"; 9 sha256 = "0ywccb6bs1389zjfmc9zwdvdsvlpm7vg957whh6b5a96yvcf8bdr"; 10 }; 11 12 nativeBuildInputs = [ cmake ]; 13 14 cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" "-DBUILD_TEST=ON" ]; 15 16 doCheck = true; 17 18 meta = with stdenv.lib; { 19 description = "Cross-platform scientific graphics plotting library"; 20 homepage = "https://plplot.org"; 21 maintainers = with maintainers; [ bcdarwin ]; 22 platforms = platforms.unix; 23 license = licenses.lgpl2; 24 }; 25}