Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 741 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 gfortran, 6 gnuplot, 7 makeWrapper, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "c-graph"; 12 version = "2.0.1"; 13 14 src = fetchurl { 15 url = "mirror://gnu/c-graph/c-graph-${version}.tar.gz"; 16 hash = "sha256-LSZ948nXXY3pXltR2hHnql6YEpHumjTvbtz4/qUIRCQ="; 17 }; 18 19 nativeBuildInputs = [ 20 gfortran 21 makeWrapper 22 ]; 23 24 postInstall = '' 25 wrapProgram $out/bin/c-graph --prefix PATH : ${lib.makeBinPath [ gnuplot ]} 26 ''; 27 28 meta = with lib; { 29 description = "Tool for Learning about Convolution"; 30 homepage = "https://www.gnu.org/software/c-graph/"; 31 license = licenses.gpl3Plus; 32 maintainers = with maintainers; [ sikmir ]; 33 platforms = platforms.unix; 34 mainProgram = "c-graph"; 35 }; 36}