Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 46 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 testers, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "libudev-zero"; 10 version = "1.0.3"; 11 12 src = fetchFromGitHub { 13 owner = "illiliti"; 14 repo = "libudev-zero"; 15 rev = finalAttrs.version; 16 sha256 = "sha256-NXDof1tfr66ywYhCBDlPa+8DUfFj6YH0dvSaxHFqsXI="; 17 }; 18 19 makeFlags = [ 20 "PREFIX=$(out)" 21 "AR=${stdenv.cc.targetPrefix}ar" 22 ]; 23 24 # Just let the installPhase build stuff, because there's no 25 # non-install target that builds everything anyway. 26 dontBuild = true; 27 28 installTargets = lib.optionals stdenv.hostPlatform.isStatic "install-static"; 29 30 passthru.tests = { 31 pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 32 }; 33 34 meta = { 35 homepage = "https://github.com/illiliti/libudev-zero"; 36 description = "Daemonless replacement for libudev"; 37 changelog = "https://github.com/illiliti/libudev-zero/releases/tag/${finalAttrs.version}"; 38 maintainers = with lib.maintainers; [ 39 qyliss 40 shamilton 41 ]; 42 license = lib.licenses.isc; 43 pkgConfigModules = [ "libudev" ]; 44 platforms = lib.platforms.linux; 45 }; 46})