2022-03-21 23:05:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-10-12 09:00:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libudev-zero";
|
2022-03-21 23:05:27 +00:00
|
|
|
version = "1.0.1";
|
2021-10-12 09:00:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "illiliti";
|
|
|
|
repo = "libudev-zero";
|
|
|
|
rev = version;
|
2022-03-21 23:05:27 +00:00
|
|
|
sha256 = "1dg6zqy8w3gxca8clz6hhv4jyvz8jdwvpmn9y289nrms1zx1jcs5";
|
2021-10-12 09:00:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
# Just let the installPhase build stuff, because there's no
|
|
|
|
# non-install target that builds everything anyway.
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/illiliti/libudev-zero";
|
|
|
|
description = "Daemonless replacement for libudev";
|
2022-03-21 23:05:27 +00:00
|
|
|
changelog = "https://github.com/illiliti/libudev-zero/releases/tag/${version}";
|
2021-10-12 09:00:15 +00:00
|
|
|
maintainers = with maintainers; [ qyliss shamilton ];
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|