|
4 | 4 | extra-trusted-public-keys = [ "cache.ztier.link-1:3P5j2ZB9dNgFFFVkCQWT3mh0E+S3rIWtZvoql64UaXM=" ];
|
5 | 5 | };
|
6 | 6 |
|
7 |
| - inputs = { |
8 |
| - nixpkgs = { |
9 |
| - url = "github:NickCao/nixpkgs/riscv"; |
10 |
| - }; |
11 |
| - nixpkgs-native = { |
12 |
| - url = "github:NixOS/nixpkgs/nixos-unstable"; |
13 |
| - }; |
14 |
| - linux-vf2-src = { |
15 |
| - flake = false; |
16 |
| - url = "github:starfive-tech/linux/JH7110_VisionFive2_upstream"; |
17 |
| - }; |
18 |
| - starfive-tools = { |
19 |
| - flake = false; |
20 |
| - url = "github:starfive-tech/Tools"; |
21 |
| - }; |
22 |
| - uboot-vf2-src = { |
23 |
| - flake = false; |
24 |
| - url = "github:u-boot/u-boot/v2024.04"; |
25 |
| - }; |
26 |
| - }; |
| 7 | + inputs.nixpkgs.url = "github:NickCao/nixpkgs/riscv"; |
| 8 | + inputs.nixpkgs-native.url = "github:NixOS/nixpkgs/nixos-unstable"; |
27 | 9 |
|
28 | 10 | outputs = inputs: {
|
29 | 11 | overlays.default = self: super: {
|
30 | 12 | linuxPackages_vf2 = self.linuxPackagesFor (self.callPackage ./linux-vf2.nix {
|
31 |
| - src = inputs.linux-vf2-src; |
32 | 13 | kernelPatches = [ ];
|
33 | 14 | });
|
34 | 15 | };
|
|
43 | 24 | };
|
44 | 25 |
|
45 | 26 | overlays.firmware = self: super: {
|
46 |
| - uboot-vf2 = (super.buildUBoot { |
47 |
| - version = inputs.uboot-vf2-src.shortRev; |
48 |
| - src = inputs.uboot-vf2-src; |
| 27 | + uboot-vf2 = (super.buildUBoot rec { |
| 28 | + version = "2024.04"; |
| 29 | + src = super.fetchurl { |
| 30 | + url = "https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"; |
| 31 | + hash = "sha256-GKhT/jn6160DqQzC1Cda6u1tppc13vrDSSuAUIhD3Uo="; |
| 32 | + }; |
49 | 33 | defconfig = "starfive_visionfive2_defconfig";
|
50 | 34 | filesToInstall = [
|
51 | 35 | "u-boot.itb"
|
|
59 | 43 |
|
60 | 44 | spl-tool = self.stdenv.mkDerivation {
|
61 | 45 | name = "spl-tool";
|
62 |
| - src = inputs.starfive-tools; |
| 46 | + src = super.fetchFromGitHub { |
| 47 | + owner = "starfive-tech"; |
| 48 | + repo = "Tools"; |
| 49 | + rev = "0747c0510e090f69bf7d2884f44903b77b3db5c5"; |
| 50 | + hash = "sha256-up58PtvnZTi6rGZcP2VwZrZBYajrZf4MzILixqaNKbE="; |
| 51 | + }; |
63 | 52 | installPhase = ''
|
64 | 53 | runHook preInstall
|
65 | 54 |
|
|
0 commit comments