2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-07-18 16:06:22 +00:00
|
|
|
, 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"}";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "Firmware loader for Qualcomm Gobi USB chipsets";
|
|
|
|
homepage = "https://www.codon.org.uk/~mjg59/gobi_loader/";
|
|
|
|
license = with licenses; [ gpl2 ];
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
2020-07-18 16:06:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|