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
45 lines
930 B
Nix
45 lines
930 B
Nix
{
|
|
lib,
|
|
clangStdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
libimobiledevice,
|
|
libusb1,
|
|
avahi,
|
|
}:
|
|
clangStdenv.mkDerivation (finalAttrs: {
|
|
pname = "libgeneral";
|
|
version = "86";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tihmstar";
|
|
repo = "libgeneral";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-60vzQkf5ztAEyLRz/+q+pGs6g9Wdv3DJp1uXgRFNUDA=";
|
|
};
|
|
|
|
# Do not depend on git to calculate version, instead
|
|
# pass version via configureFlag
|
|
patches = [ ./configure-version.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-version-commit-count=${finalAttrs.version}"
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
description = "Helper library used by usbmuxd2";
|
|
homepage = "https://github.com/tihmstar/libgeneral";
|
|
license = lib.licenses.lgpl21;
|
|
platforms = lib.platforms.all;
|
|
maintainers = with lib.maintainers; [ onny ];
|
|
};
|
|
})
|