Skip to content

Instantly share code, notes, and snippets.

@tribals
Last active September 19, 2020 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribals/dd13aa986c367f72b87687c2921ee38f to your computer and use it in GitHub Desktop.
Save tribals/dd13aa986c367f72b87687c2921ee38f to your computer and use it in GitHub Desktop.
(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