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
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
|
|
# nativeBuildInputs
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
installShellFiles,
|
|
|
|
# buildInputs
|
|
gtk3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "piscope";
|
|
version = "0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joan2937";
|
|
repo = "piscope";
|
|
tag = "V${finalAttrs.version}";
|
|
hash = "sha256-VDrx/RLSpMhyD64PmdeWVacb9LleHakcy7D6zFxeyhw=";
|
|
};
|
|
# Fix FHS paths
|
|
postPatch = ''
|
|
substituteInPlace piscope.c \
|
|
--replace-fail /usr/share/piscope $out/share/piscope
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
installShellFiles
|
|
];
|
|
buildInputs = [
|
|
gtk3
|
|
];
|
|
# Upstream's Makefile assumes FHS
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
installBin piscope
|
|
install -D -m 0644 piscope.glade $out/share/piscope/piscope.glade
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://abyz.me.uk/rpi/pigpio/piscope.html";
|
|
description = "Logic analyser (digital waveform viewer) for the Raspberry";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|