1 { lib, stdenv, fetchFromGitHub, testers }:
3 stdenv.mkDerivation (finalAttrs: {
4 pname = "libudev-zero";
7 src = fetchFromGitHub {
10 rev = finalAttrs.version;
11 sha256 = "sha256-NXDof1tfr66ywYhCBDlPa+8DUfFj6YH0dvSaxHFqsXI=";
14 makeFlags = [ "PREFIX=$(out)" "AR=${stdenv.cc.targetPrefix}ar" ];
16 # Just let the installPhase build stuff, because there's no
17 # non-install target that builds everything anyway.
20 installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static";
23 pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
27 homepage = "https://github.com/illiliti/libudev-zero";
28 description = "Daemonless replacement for libudev";
29 changelog = "https://github.com/illiliti/libudev-zero/releases/tag/${version}";
30 maintainers = with maintainers; [ qyliss shamilton ];
31 license = licenses.isc;
32 pkgConfigModules = [ "libudev" ];
33 platforms = platforms.linux;