depot/third_party/nixpkgs/pkgs/by-name/gn/gnucap/modelgen-verilog.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

37 lines
1,004 B
Nix

{ lib
, stdenv
, fetchurl
, gnucap
}:
stdenv.mkDerivation rec {
pname = "gnucap-modelgen-verilog";
version = "20240130-dev";
src = fetchurl {
url = "https://git.savannah.gnu.org/cgit/gnucap/gnucap-modelgen-verilog.git/snapshot/${pname}-${version}.tar.gz";
hash = "sha256-7w0eWUJKVRYFicQgDvKrJTkZ6fzgwxvcCKj78KrHj8E=";
};
propagatedBuildInputs = [ gnucap ];
doCheck = true;
preInstall = ''
export GNUCAP_EXEC_PREFIX=$out
export GNUCAP_DATA=$out/share/gnucap
mkdir -p $out/include/gnucap
export GNUCAP_INCLUDEDIR=$out/include/gnucap
export GNUCAP_PKGLIBDIR=$out/lib/gnucap
'';
meta = with lib; {
description = "gnucap modelgen to preprocess, parse and dump vams files.";
homepage = "http://www.gnucap.org/";
changelog = "https://git.savannah.gnu.org/cgit/gnucap.git/plain/NEWS?h=v${version}";
mainProgram = "gnucap-mg-vams";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = [ maintainers.raboof ];
};
}