From 926fb03392796effcf68010f70a5a7af2e4c12dc Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Wed, 16 Oct 2024 15:03:01 -0700 Subject: [PATCH] culvert: init at 0.4.0.unstable-2024-10-16 --- pkgs/by-name/cu/culvert/package.nix | 46 +++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/cu/culvert/package.nix diff --git a/pkgs/by-name/cu/culvert/package.nix b/pkgs/by-name/cu/culvert/package.nix new file mode 100644 index 000000000000..a2c69e5df2c5 --- /dev/null +++ b/pkgs/by-name/cu/culvert/package.nix @@ -0,0 +1,46 @@ +{ + stdenv, + lib, + fetchFromGitHub, + fetchpatch, + meson, + ninja, + pkg-config, + dtc, +}: + +stdenv.mkDerivation rec { + pname = "culvert"; + version = "0.4.0.unstable-2024-10-17"; + + src = fetchFromGitHub { + owner = "amboar"; + repo = "culvert"; + rev = "770a6ed4badec1c6e3079cd9b354d0996d55b326"; + hash = "sha256-Lj72uYItTxTVYcSEbr/XezeyFvrcqqMTu74tOE+DwJE="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + dtc # The dtc binary to compile device trees + ]; + + buildInputs = [ + dtc # provides libfdt + ]; + + mesonFlags = [ + "-Db_lto=false" + ]; + + meta = with lib; { + homepage = "https://github.com/amboar/culvert"; + description = "A Test and Debug Tool for BMC AHB Interfaces "; + mainProgram = "culvert"; + license = licenses.asl20; + maintainers = [ maintainers.baloo ]; + platforms = platforms.linux; + }; +}