Files
nixpkgs/pkgs/by-name/he/hexio/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

53 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
pcsclite,
pth,
python3Packages,
}:
stdenv.mkDerivation rec {
pname = "hexio";
version = "1.1";
src = fetchFromGitLab {
owner = "vanrein";
repo = "hexio";
tag = "v${version}";
hash = "sha256-jp7VHT08Rhw5nUtNpqkRHDHT0R51PCBy0cKb1sI6zkg=";
};
strictDeps = true;
nativeBuildInputs = [ python3Packages.wrapPython ];
buildInputs = [
pcsclite
pth
];
postPatch = ''
substituteInPlace Makefile \
--replace-fail '-I/usr/local/include/PCSC/' '-I${lib.getDev pcsclite}/include/PCSC/' \
--replace-fail '-L/usr/local/lib/pth' '-I${pth}/lib/'
'';
installPhase = ''
mkdir -p $out/bin $out/lib $out/sbin $out/man
make DESTDIR=$out PREFIX=/ all
make DESTDIR=$out PREFIX=/ install
'';
postFixup = ''
wrapPythonPrograms
'';
meta = with lib; {
description = "Low-level I/O helpers for hexadecimal, tty/serial devices and so on";
homepage = "https://github.com/vanrein/hexio";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ leenaars ];
};
}