Commit 24aaa8a8 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

libudev-zero.meta.pkgConfigModules: init

parent 37442e77
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub }:
{ lib, stdenv, fetchFromGitHub, testers }:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "libudev-zero";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "illiliti";
    repo = "libudev-zero";
    rev = version;
    rev = finalAttrs.version;
    sha256 = "sha256-NXDof1tfr66ywYhCBDlPa+8DUfFj6YH0dvSaxHFqsXI=";
  };

@@ -19,12 +19,17 @@ stdenv.mkDerivation rec {

  installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static";

  passthru.tests = {
    pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
  };

  meta = with lib; {
    homepage = "https://github.com/illiliti/libudev-zero";
    description = "Daemonless replacement for libudev";
    changelog = "https://github.com/illiliti/libudev-zero/releases/tag/${version}";
    maintainers = with maintainers; [ qyliss shamilton ];
    license = licenses.isc;
    pkgConfigModules = [ "libudev" ];
    platforms = platforms.linux;
  };
}
})