uboot: use pname and cleanup version specification

This commit is contained in:
Ben Wolsieffer 2019-01-05 16:10:10 -05:00
parent 26079c4da7
commit 404773e336
3 changed files with 4 additions and 5 deletions

View File

@ -4,7 +4,8 @@
}:
let
buildUBoot = { filesToInstall
buildUBoot = { version ? "2018.09"
, filesToInstall
, installDir ? "$out"
, defconfig
, extraConfig ? ""
@ -14,8 +15,8 @@ let
, ... } @ args:
stdenv.mkDerivation (rec {
name = "uboot-${defconfig}-${version}";
version = args.version or "2018.09";
pname = "uboot-${defconfig}";
inherit version;
src = fetchurl {
url = "ftp://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2";

View File

@ -6,7 +6,6 @@
sha256 = "189f7h6wj2yrcc5ga103jnyysykf9j3j9p1vcy7791bxwxqxnggf";
};
in buildUBoot rec {
name = "uboot-${defconfig}-${version}";
version = "2017.09";
src = fetchFromGitHub {

View File

@ -6,7 +6,6 @@
sha256 = "189f7h6wj2yrcc5ga103jnyysykf9j3j9p1vcy7791bxwxqxnggf";
};
in buildUBoot rec {
name = "uboot-${defconfig}-${version}";
version = "2017.09";
src = fetchFromGitHub {