Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "libudev-zero"; 5 version = "1.0.2"; 6 7 src = fetchFromGitHub { 8 owner = "illiliti"; 9 repo = "libudev-zero"; 10 rev = version; 11 sha256 = "sha256-SU1pPmLLeTWZe5ybhmDplFw6O/vpEjFAKgfKDl0RS4U="; 12 }; 13 14 makeFlags = [ "PREFIX=$(out)" "AR=${stdenv.cc.targetPrefix}ar" ]; 15 16 # Just let the installPhase build stuff, because there's no 17 # non-install target that builds everything anyway. 18 dontBuild = true; 19 20 installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static"; 21 22 meta = with lib; { 23 homepage = "https://github.com/illiliti/libudev-zero"; 24 description = "Daemonless replacement for libudev"; 25 changelog = "https://github.com/illiliti/libudev-zero/releases/tag/${version}"; 26 maintainers = with maintainers; [ qyliss shamilton ]; 27 license = licenses.isc; 28 platforms = platforms.linux; 29 }; 30}