diff options
author | zaldnoay <zaldnoay@users.noreply.github.com> | 2023-09-20 15:07:00 +0800 |
---|---|---|
committer | zaldnoay <zaldnoay@users.noreply.github.com> | 2023-09-24 23:29:03 +0800 |
commit | 8de99dd1cea43450348dec005a49914585b9f1c9 (patch) | |
tree | 61fae8859709006c21acf32fc04173e0e143117f | |
parent | 96e42dafe922c8ff2a7604ed3874275efddadd1a (diff) |
armbian-firmware: init at unstable-2023-09-16
-rw-r--r-- | pkgs/by-name/ar/armbian-firmware/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/ar/armbian-firmware/package.nix b/pkgs/by-name/ar/armbian-firmware/package.nix new file mode 100644 index 0000000000000..6e97c5908871e --- /dev/null +++ b/pkgs/by-name/ar/armbian-firmware/package.nix @@ -0,0 +1,33 @@ +{ stdenvNoCC, lib, fetchFromGitHub }: +stdenvNoCC.mkDerivation rec { + pname = "armbian-firmware"; + version = "unstable-2023-09-16"; + + src = fetchFromGitHub { + owner = "armbian"; + repo = "firmware"; + rev = "01f9809bb0c4bd60c0c84b9438486b02d58b03f7"; + hash = "sha256-ozKADff7lFjIT/Zf5dkNlCe8lOK+kwYb/60NaCJ8i2k="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib/firmware + cp -a * $out/lib/firmware/ + + runHook postInstall + ''; + + # Firmware blobs do not need fixing and should not be modified + dontBuild = true; + dontFixup = true; + + meta = with lib; { + description = "Firmware from Armbian"; + homepage = "https://github.com/armbian/firmware"; + license = licenses.unfree; + platforms = platforms.all; + maintainers = with maintainers; [ zaldnoay ]; + }; +} |