Files
nixpkgs/pkgs/by-name/li/lib45d/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

45 lines
1.1 KiB
Nix

{
stdenv,
fetchFromGitHub,
fetchpatch,
lib,
}:
stdenv.mkDerivation (finalAttrs: {
name = "lib45d";
version = "0.3.6";
src = fetchFromGitHub {
owner = "45Drives";
repo = "lib45d";
tag = "v${finalAttrs.version}";
hash = "sha256-42xB30Iu2WxNrBxomVBKd/uyIRt27y/Y1ah5mckOrc0=";
};
patches = [
# https://github.com/45Drives/lib45d/issues/3
# fix "error: 'uintmax_t' has not been declared" build failure until next release
(fetchpatch {
url = "https://github.com/45Drives/lib45d/commit/a607e278182a3184c004c45c215aa22c15d6941d.patch";
hash = "sha256-sMAvOp4EjBXGHa9PGuuEqJvpEvUlMuzRKCfq9oqQLgY=";
})
];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/lib dist/shared/lib45d.so
mkdir -p $out/include/45d
cp -f -r src/incl/45d/* $out/include/45d/
runHook postInstall
'';
meta = {
homepage = "https://github.com/45Drives/lib45d";
description = "45Drives C++ Library";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ philipwilk ];
platforms = lib.platforms.linux;
};
})