nixpkgs/pkgs/by-name/vh/vhd2vl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
2020-05-04 17:40:35 +00:00
, fetchFromGitHub
, bison
, flex
, iverilog
2021-05-31 22:11:13 +00:00
, which
2020-05-04 17:40:35 +00:00
}:
stdenv.mkDerivation rec {
pname = "vhd2vl";
version = "unstable-2022-12-26";
2020-05-04 17:40:35 +00:00
src = fetchFromGitHub {
owner = "ldoolitt";
repo = pname;
rev = "869d442987dff6b9730bc90563ede89c1abfd28f";
sha256 = "sha256-Hz2XkT5m4ri5wVR2ciL9Gx73zr+RdW5snjWnUg300c8=";
2020-05-04 17:40:35 +00:00
};
nativeBuildInputs = [
bison
flex
2021-06-01 05:29:13 +00:00
which
2020-05-04 17:40:35 +00:00
];
buildInputs = [
iverilog
2020-05-04 17:40:35 +00:00
];
# the "translate" target both (a) builds the software and (b) runs
# the tests (without validating the results)
buildTargets = [ "translate" ];
# the "diff" target examines the test results
checkTarget = "diff";
2020-05-04 17:40:35 +00:00
installPhase = ''
2021-06-01 05:29:13 +00:00
runHook preInstall
install -D -m755 src/vhd2vl $out/bin/vhd2vl
2021-06-01 05:29:13 +00:00
runHook postInstall
2020-05-04 17:40:35 +00:00
'';
meta = with lib; {
2020-05-04 17:40:35 +00:00
description = "VHDL to Verilog converter";
mainProgram = "vhd2vl";
2020-05-04 17:40:35 +00:00
homepage = "https://github.com/ldoolitt/vhd2vl";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ matthuszagh ];
};
}