btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libudev-zero / package.nix
blob82bc25cca57a97b383dafcc75d8f6d811cb045f7
1 { lib, stdenv, fetchFromGitHub, testers }:
3 stdenv.mkDerivation (finalAttrs: {
4   pname = "libudev-zero";
5   version = "1.0.3";
7   src = fetchFromGitHub {
8     owner = "illiliti";
9     repo = "libudev-zero";
10     rev = finalAttrs.version;
11     sha256 = "sha256-NXDof1tfr66ywYhCBDlPa+8DUfFj6YH0dvSaxHFqsXI=";
12   };
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.
18   dontBuild = true;
20   installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static";
22   passthru.tests = {
23     pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
24   };
26   meta = with lib; {
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;
34   };