mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-06 13:53:05 +00:00
f4ea1208ec
*Flags implies a list slightly relevant: > stdenv: start deprecating non-list configureFlags https://github.com/NixOS/nixpkgs/pull/173172 the makeInstalledTests function in `nixos/tests/installed-tests/default.nix` isn't available outside of nixpkgs so it's not a breaking change
29 lines
838 B
Nix
29 lines
838 B
Nix
{ lib, 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 lib; {
|
|
description = "Firmware loader for Qualcomm Gobi USB chipsets";
|
|
homepage = "https://www.codon.org.uk/~mjg59/gobi_loader/";
|
|
license = with licenses; [ gpl2 ];
|
|
maintainers = with maintainers; [ _0x4A6F ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|