2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, gfortran, gnuplot, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "c-graph";
|
|
|
|
version = "2.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/c-graph/c-graph-${version}.tar.gz";
|
|
|
|
hash = "sha256-LSZ948nXXY3pXltR2hHnql6YEpHumjTvbtz4/qUIRCQ=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gfortran makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/c-graph --prefix PATH : ${lib.makeBinPath [ gnuplot ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for Learning about Convolution";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://www.gnu.org/software/c-graph/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "c-graph";
|
|
|
|
};
|
|
|
|
}
|