openxray: 2188-november-2023-rc1 -> 2921-january-2025-rc1 (#375925)
[NixPkgs.git] / pkgs / by-name / li / libudev-zero / package.nix
blob104c80c498f956c744284946c5d14c8525c052fc
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   testers,
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname = "libudev-zero";
10   version = "1.0.3";
12   src = fetchFromGitHub {
13     owner = "illiliti";
14     repo = "libudev-zero";
15     rev = finalAttrs.version;
16     sha256 = "sha256-NXDof1tfr66ywYhCBDlPa+8DUfFj6YH0dvSaxHFqsXI=";
17   };
19   makeFlags = [
20     "PREFIX=$(out)"
21     "AR=${stdenv.cc.targetPrefix}ar"
22   ];
24   # Just let the installPhase build stuff, because there's no
25   # non-install target that builds everything anyway.
26   dontBuild = true;
28   installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static";
30   passthru.tests = {
31     pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
32   };
34   meta = with lib; {
35     homepage = "https://github.com/illiliti/libudev-zero";
36     description = "Daemonless replacement for libudev";
37     changelog = "https://github.com/illiliti/libudev-zero/releases/tag/${version}";
38     maintainers = with maintainers; [
39       qyliss
40       shamilton
41     ];
42     license = licenses.isc;
43     pkgConfigModules = [ "libudev" ];
44     platforms = platforms.linux;
45   };