From 6243fa92452e7085b8946c1a76ec46a5b31f8c26 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sat, 31 Dec 2022 13:58:39 -0800 Subject: [PATCH] src/coreboot: expose src attr in passthru.src --- src/coreboot/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/coreboot/default.nix b/src/coreboot/default.nix index b7a972d..ccf3f8b 100644 --- a/src/coreboot/default.nix +++ b/src/coreboot/default.nix @@ -11,11 +11,6 @@ let version = "4.9"; inherit (nixpkgsOnBuildForBuild) stdenv lib git python2 ncurses fetchgit; -in -stdenv.mkDerivation { - pname = "coreboot"; - inherit version; - src = fetchgit { url = "https://review.coreboot.org/coreboot"; branchName = "${version}"; @@ -23,6 +18,13 @@ stdenv.mkDerivation { hash = "sha256-lX6QnUS4a/F4Y68qK9i45O4OP+UEjHlCK+YaKJOQLUo="; fetchSubmodules = false; }; +in +stdenv.mkDerivation { + pname = "coreboot"; + inherit version; + + passthru = { inherit src; }; + inherit src; prePatch = '' patchShebangs .