Files
nixpkgs/pkgs/by-name/ip/ipbus-uhal/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.7 KiB
Nix

{
lib,
stdenv,
bash,
cacert,
boost186,
pugixml,
python3,
python3Packages,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ipbus-uhal";
version = "2.8.16";
src = fetchFromGitHub {
owner = "ipbus";
repo = "ipbus-software";
rev = "v${finalAttrs.version}";
hash = "sha256-R+a9VmONyWh3BEYoMjRcXKv+3HaNcKbJDnYH1hXHdPg=";
};
nativeBuildInputs = [
cacert
(python3.withPackages (ps: [
ps.distutils
ps.pybind11
]))
];
buildInputs = [
boost186
pugixml
python3.pkgs.distutils
python3.pkgs.pybind11
];
postPatch = ''
substituteInPlace config/Makefile.macros --replace-fail \
'SHELL := /bin/bash' ""
patchShebangs --build uhal/config/install.sh
patchShebangs --build uhal/tests/setup.sh
patchShebangs --build scripts/doxygen/api_uhal.sh
patchShebangs --build config/progress.sh
patchShebangs --build config/Makefile.macros
'';
enableParallelBuilding = true;
makeFlags = [
"Set=uhal"
"CXX=${stdenv.cc.targetPrefix}c++"
];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,include}
make Set=uhal install prefix=$out/bin includedir=$out/include
runHook postInstall
'';
meta = {
description = "Software which pairs with ipbus-firmware";
longDescription = ''
Software that provide a reliable high-performance
control link for particle-physics or other electronics,
by implementing a simple A32/D32 control protocol
for reading and modifying memory-mapped resources
within FPGA-based hardware devices.
'';
platforms = lib.platforms.linux;
homepage = "https://ipbus.web.cern.ch/";
maintainers = [ lib.maintainers.bashsu ];
mainProgram = "ipbus-uhal";
};
})