aboutsummaryrefslogtreecommitdiff
path: root/pkgs/misc/riscv-pk
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-19 12:37:46 -0500
committerShea Levy <shea@shealevy.com>2018-02-19 12:37:46 -0500
commitfd2f2bbe6f23408cf73507e40e7fea40485b0bd5 (patch)
treef498775d4d111537b8160db3db3b3578521d2556 /pkgs/misc/riscv-pk
parent6173f2f945a2a62fb20caa86947e5f68ccacfdd8 (diff)
riscv-pk: Add a variant with a kernel
Diffstat (limited to 'pkgs/misc/riscv-pk')
-rw-r--r--pkgs/misc/riscv-pk/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/misc/riscv-pk/default.nix b/pkgs/misc/riscv-pk/default.nix
index 025d591d137a..5f0d1fa438f4 100644
--- a/pkgs/misc/riscv-pk/default.nix
+++ b/pkgs/misc/riscv-pk/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, autoreconfHook }: let
+{ stdenv, fetchFromGitHub, autoreconfHook, payload ? null }: let
rev = "e5846a2bc707eaa58dc8ab6a8d20a090c6ee8570";
sha256 = "1clynpp70fnbgsjgxx7xi0vrdrj1v0h8zpv0x26i324kp2gwylf4";
revCount = "438";
@@ -21,6 +21,9 @@ in stdenv.mkDerivation {
configureScript = "../configure";
+ configureFlags = stdenv.lib.optional (payload != null)
+ "--with-payload=${payload}";
+
hardeningDisable = [ "all" ];
meta = {