Last active
September 19, 2020 21:33
-
-
Save tribals/dd13aa986c367f72b87687c2921ee38f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-modules (gnu packages base)) | |
(use-modules (guix build-system copy)) | |
(use-modules (guix download)) | |
(use-modules (guix packages)) | |
(use-modules (guix licenses)) | |
(define-public u-boot-khadas-vim3l | |
(package | |
(name "u-boot-khadas-vim3l") | |
(version "2020.04") | |
(source | |
(origin | |
(method url-fetch) | |
(uri "https://dl.khadas.com/Firmware/uboot/mainline/VIM3L.u-boot.sd.bin") | |
(sha256 | |
(base32 "1v6n2983w9f1v9i4saawqxcwd9dxj0wi3ka3c1jhrw07hh56691k")))) | |
(build-system copy-build-system) | |
(inputs | |
`(("coreutils" ,coreutils))) | |
(arguments | |
`(#:phases | |
(modify-phases %standard-phases | |
(delete 'unpack) | |
(add-before 'install 'cut-mbr | |
(lambda _ | |
(system "dd" "if=VIM3L.u-boot.sd.bin" "of=u-boot.sd.bin" "bs=512" "skip=1" "seek=1")))) | |
#:install-plan | |
`(("u-boot.sd.bin" "libexec/")))) | |
(synopsis "Foo") | |
(description "Vendor u-boot (mainline) for VIM3L") | |
(home-page "https://docs.khadas.com/vim3/") | |
(license gpl3+))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment