uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
28
pkgs/os-specific/linux/gobi_loader/default.nix
Normal file
28
pkgs/os-specific/linux/gobi_loader/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue