From e4ed48d695e5305b05ccb27491b55c83cdffc65d Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sun, 4 Feb 2024 19:00:31 +0400 Subject: [PATCH] c-graph: init at 2.0.1 --- pkgs/by-name/c-/c-graph/package.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 pkgs/by-name/c-/c-graph/package.nix diff --git a/pkgs/by-name/c-/c-graph/package.nix b/pkgs/by-name/c-/c-graph/package.nix new file mode 100644 index 000000000000..83679aacce96 --- /dev/null +++ b/pkgs/by-name/c-/c-graph/package.nix @@ -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"; + }; +}