From 08d7136a2e3150dd898cf2d2d3756801dfb407bd Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 15 Feb 2023 14:32:53 +0900 Subject: feat(nixos/kompakt): use flakes for asahi-related dependencies Imports are done directly inside the system configuration file to ensure one doesn't forget to import the required modules. --- .../packages/asahi-fwextract/default.nix | 36 ---------------------- 1 file changed, 36 deletions(-) delete mode 100755 nixos/modules/apple-silicon-support/packages/asahi-fwextract/default.nix (limited to 'nixos/modules/apple-silicon-support/packages/asahi-fwextract/default.nix') diff --git a/nixos/modules/apple-silicon-support/packages/asahi-fwextract/default.nix b/nixos/modules/apple-silicon-support/packages/asahi-fwextract/default.nix deleted file mode 100755 index 992d250..0000000 --- a/nixos/modules/apple-silicon-support/packages/asahi-fwextract/default.nix +++ /dev/null @@ -1,36 +0,0 @@ -{ lib -, python3 -, fetchFromGitHub -, gzip -, gnutar -, lzfse -}: - -python3.pkgs.buildPythonApplication rec { - pname = "asahi-fwextract"; - version = "0.5pre2"; - - # tracking version: https://github.com/AsahiLinux/PKGBUILDs/blob/main/asahi-fwextract/PKGBUILD - src = fetchFromGitHub { - owner = "AsahiLinux"; - repo = "asahi-installer"; - rev = "v${version}"; - hash = "sha256-p34eN2iE1s8rupdysjyf6GN8kHkVG9NDw31YKPDNXbk="; - }; - - patches = [ - ./add_entry_point.patch - ]; - - postPatch = '' - substituteInPlace asahi_firmware/img4.py \ - --replace 'liblzfse.so' '${lzfse}/lib/liblzfse.so' - substituteInPlace asahi_firmware/update.py \ - --replace '"tar"' '"${gnutar}/bin/tar"' \ - --replace '"xf"' '"-x", "-I", "${gzip}/bin/gzip", "-f"' - ''; - - nativeBuildInputs = [ python3.pkgs.setuptools ]; - - doCheck = false; -} -- cgit 1.4.1