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
74 lines
1.6 KiB
Nix
74 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchzip,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
czmq,
|
|
libusb1,
|
|
ncurses,
|
|
SDL2,
|
|
libelf,
|
|
}:
|
|
|
|
let
|
|
libdwarf = fetchzip {
|
|
url = "https://www.prevanders.net/libdwarf-0.7.0.tar.xz";
|
|
hash = "sha256-YTTbBJkDu2BSAVpvucqtg7/hFxXrxLnNAlvAL7rmkdE=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "orbuculum";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orbcode";
|
|
repo = "orbuculum";
|
|
tag = "V${finalAttrs.version}";
|
|
hash = "sha256-n3+cfeN6G9n8pD5WyiHPENMJ0FN+bRVZe9pl81uvIrc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
cp --recursive --no-preserve=mode ${libdwarf} subprojects/libdwarf-0.7.0
|
|
pushd subprojects/libdwarf-0.7.0
|
|
patch -p1 < ../packagefiles/libdwarf/0001-fix-Use-project_source_root-for-subproject-compatibi.patch
|
|
patch -p1 < ../packagefiles/libdwarf/0002-fix-compilation-clang.patch
|
|
patch -p1 < ../packagefiles/libdwarf/0003-Fixed-calloc-arguments-order.patch
|
|
popd
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
czmq
|
|
libusb1
|
|
ncurses
|
|
SDL2
|
|
libelf
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
installFlags = [ "INSTALL_ROOT=$(out)/" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/etc/udev/rules.d/
|
|
cp $src/Support/60-orbcode.rules $out/etc/udev/rules.d/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Cortex M SWO SWV Demux and Postprocess for the ORBTrace";
|
|
homepage = "https://orbcode.org";
|
|
changelog = "https://github.com/orbcode/orbuculum/blob/V${finalAttrs.version}/CHANGES.md";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ newam ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|