Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
930 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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 ];
};
})