mirror of
https://github.com/t2linux/nixos-t2-iso.git
synced 2026-08-16 05:18:14 -07:00
feat: package get-apple-firmware script
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
git
|
||||
python3
|
||||
dmg2img
|
||||
(pkgs.callPackage ./pkgs/firmware-script.nix {})
|
||||
];
|
||||
|
||||
# ZFS is (sometimes) broken and prevents building without this
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{ stdenvNoCC, fetchurl, lib }: stdenvNoCC.mkDerivation (final: {
|
||||
pname = "get-apple-firmware";
|
||||
version = "fe8c338e6cf1238a390984ba06544833ab8792d3";
|
||||
src = fetchurl {
|
||||
url = "https://raw.github.com/t2linux/wiki/${final.version}/docs/tools/firmware.sh";
|
||||
hash = "sha256-DYghvLnG3DO8WmLIrT4p5yzCDWRevp3vx0wYtdTLyeY=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp ${final.src} $out/bin/get-apple-firmware
|
||||
chmod +x $out/bin/get-apple-firmware
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A script to get needed firmware for T2linux devices";
|
||||
homepage = "https://t2linux.org";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ soopyc ];
|
||||
mainProgram = "get-apple-firmware";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user