Merge pull request #286309 from sikmir/c-graph

c-graph: init at 2.0.1
This commit is contained in:
Nikolay Korotkiy 2024-03-03 01:53:17 +04:00 committed by GitHub
commit 551c27677d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,26 @@
{ 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; {
description = "A Tool for Learning about Convolution";
homepage = "https://www.gnu.org/software/c-graph/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
mainProgram = "c-graph";
};
}