Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv 2, fetchurl 3}: 4 5stdenv.mkDerivation rec { 6 pname = "gobi_loader"; 7 version = "0.7"; 8 9 src = fetchurl { 10 url = "https://www.codon.org.uk/~mjg59/gobi_loader/download/${pname}-${version}.tar.gz"; 11 sha256 = "0jkmpqkiddpxrzl2s9s3kh64ha48m00nn53f82m1rphw8maw5gbq"; 12 }; 13 14 postPatch = '' 15 substituteInPlace 60-gobi.rules --replace "gobi_loader" "${placeholder "out"}/lib/udev/gobi_loader" 16 substituteInPlace 60-gobi.rules --replace "/lib/firmware" "/run/current-system/firmware" 17 ''; 18 19 makeFlags = [ "prefix=${placeholder "out"}" ]; 20 21 meta = with lib; { 22 description = "Firmware loader for Qualcomm Gobi USB chipsets"; 23 homepage = "https://www.codon.org.uk/~mjg59/gobi_loader/"; 24 license = with licenses; [ gpl2 ]; 25 maintainers = with maintainers; [ _0x4A6F ]; 26 platforms = platforms.linux; 27 }; 28}