Merge pull request #73787 from 0x4A6F/master-gobi_loader

gobi_loader: init at 0.7
This commit is contained in:
Samuel Dionne-Riel 2020-06-23 16:36:36 -04:00 committed by GitHub
commit 53adfda8e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, fetchurl
}:
stdenv.mkDerivation rec {
pname = "gobi_loader";
version = "0.7";
src = fetchurl {
url = "https://www.codon.org.uk/~mjg59/gobi_loader/download/${pname}-${version}.tar.gz";
sha256 = "0jkmpqkiddpxrzl2s9s3kh64ha48m00nn53f82m1rphw8maw5gbq";
};
postPatch = ''
substituteInPlace 60-gobi.rules --replace "gobi_loader" "${placeholder "out"}/lib/udev/gobi_loader"
substituteInPlace 60-gobi.rules --replace "/lib/firmware" "/run/current-system/firmware"
'';
makeFlags = "prefix=${placeholder "out"}";
meta = with stdenv.lib; {
description = "Firmware loader for Qualcomm Gobi USB chipsets";
homepage = "https://www.codon.org.uk/~mjg59/gobi_loader/";
license = with licenses; [ gpl2 ];
maintainers = [ maintainers."0x4A6F" ];
platforms = platforms.linux;
};
}

View File

@ -16724,6 +16724,8 @@ in
fwts = callPackage ../os-specific/linux/fwts { };
gobi_loader = callPackage ../os-specific/linux/gobi_loader { };
libossp_uuid = callPackage ../development/libraries/libossp-uuid { };
libuuid = if stdenv.isLinux