nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 941 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 udevCheckHook, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "gobi_loader"; 10 version = "0.7"; 11 12 src = fetchurl { 13 url = "https://www.codon.org.uk/~mjg59/gobi_loader/download/${pname}-${version}.tar.gz"; 14 sha256 = "0jkmpqkiddpxrzl2s9s3kh64ha48m00nn53f82m1rphw8maw5gbq"; 15 }; 16 17 postPatch = '' 18 substituteInPlace 60-gobi.rules --replace "gobi_loader" "${placeholder "out"}/lib/udev/gobi_loader" 19 substituteInPlace 60-gobi.rules --replace "/lib/firmware" "/run/current-system/firmware" 20 ''; 21 22 nativeBuildInputs = [ 23 udevCheckHook 24 ]; 25 26 doInstallCheck = true; 27 28 makeFlags = [ "prefix=${placeholder "out"}" ]; 29 30 meta = { 31 description = "Firmware loader for Qualcomm Gobi USB chipsets"; 32 homepage = "https://www.codon.org.uk/~mjg59/gobi_loader/"; 33 license = with lib.licenses; [ gpl2Only ]; 34 maintainers = with lib.maintainers; [ _0x4A6F ]; 35 platforms = lib.platforms.linux; 36 }; 37}