Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, udev }: 2 3stdenv.mkDerivation rec { 4 pname = "libudev0-shim"; 5 version = "1"; 6 7 src = fetchFromGitHub { 8 owner = "archlinux"; 9 repo = "libudev0-shim"; 10 rev = "v${version}"; 11 sha256 = "1460qm6rp1cqnns39lj24z7191m8sbpvbjabqbzb55dkdd2kw50z"; 12 }; 13 14 buildInputs = [ udev ]; 15 16 installPhase = '' 17 name="$(echo libudev.so.*)" 18 install -Dm755 "$name" "$out/lib/$name" 19 ln -s "$name" "$out/lib/libudev.so.0" 20 ''; 21 22 meta = with lib; { 23 description = "Shim to preserve libudev.so.0 compatibility"; 24 homepage = "https://github.com/archlinux/libudev0-shim"; 25 platforms = platforms.linux; 26 license = licenses.lgpl21; 27 maintainers = with maintainers; [ abbradar ]; 28 }; 29}