lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

asahi-fwextract: init at 0.7.9 (#420893)

authored by

Florian Klink and committed by
GitHub
8f91555f db76c1b3

+45
+45
pkgs/by-name/as/asahi-fwextract/package.nix
··· 1 + { 2 + lib, 3 + python3, 4 + fetchFromGitHub, 5 + gzip, 6 + gnutar, 7 + lzfse, 8 + nix-update-script, 9 + }: 10 + 11 + python3.pkgs.buildPythonApplication rec { 12 + pname = "asahi-fwextract"; 13 + version = "0.7.9"; 14 + pyproject = true; 15 + 16 + src = fetchFromGitHub { 17 + owner = "AsahiLinux"; 18 + repo = "asahi-installer"; 19 + tag = "v${version}"; 20 + hash = "sha256-vbhepoZ52k5tW2Gd7tfQTZ5CLqzhV7dUcVh6+AYwECk="; 21 + }; 22 + 23 + postPatch = '' 24 + substituteInPlace asahi_firmware/img4.py \ 25 + --replace-fail 'liblzfse.so' '${lzfse}/lib/liblzfse.so' 26 + substituteInPlace asahi_firmware/update.py \ 27 + --replace-fail '"tar"' '"${gnutar}/bin/tar"' \ 28 + --replace-fail '"xf"' '"-x", "-I", "${gzip}/bin/gzip", "-f"' 29 + ''; 30 + 31 + build-system = [ python3.pkgs.setuptools ]; 32 + 33 + passthru = { 34 + updateScript = nix-update-script { }; 35 + }; 36 + 37 + meta = { 38 + description = "Asahi firmware extraction script"; 39 + homepage = "https://github.com/AsahiLinux/asahi-installer"; 40 + license = lib.licenses.mit; 41 + maintainers = with lib.maintainers; [ normalcea ]; 42 + mainProgram = "asahi-fwextract"; 43 + platforms = [ "aarch64-linux" ]; 44 + }; 45 + }