about summary refs log tree commit diff
path: root/pkgs/misc/riscv-pk
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-18 18:11:03 -0500
committerShea Levy <shea@shealevy.com>2018-02-18 18:11:03 -0500
commit7f3c97ae9ea2aebb93297acad8f9dba32d2cbbbf (patch)
tree764e4bcc06d1cc1f3ba19e023ed526eedf6ff41b /pkgs/misc/riscv-pk
parent3ab38ef086947822fbe2cffea071e1c508811990 (diff)
riscv-pk: Init at 01.pre438_e5846a2.
Diffstat (limited to 'pkgs/misc/riscv-pk')
-rw-r--r--pkgs/misc/riscv-pk/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/misc/riscv-pk/default.nix b/pkgs/misc/riscv-pk/default.nix
new file mode 100644
index 0000000000000..1800f57d6855a
--- /dev/null
+++ b/pkgs/misc/riscv-pk/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, autoreconfHook }: let
+  rev = "e5846a2bc707eaa58dc8ab6a8d20a090c6ee8570";
+  sha256 = "1clynpp70fnbgsjgxx7xi0vrdrj1v0h8zpv0x26i324kp2gwylf4";
+  revCount = "438";
+  shortRev = "e5846a2";
+in stdenv.mkDerivation {
+  name = "riscv-pk-0.1pre${revCount}_${shortRev}";
+
+  src = fetchFromGitHub {
+    owner = "riscv";
+    repo = "riscv-pk";
+    inherit rev sha256;
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+
+  preConfigure = ''
+    mkdir build
+    cd build
+  '';
+
+  configureScript = "../configure";
+
+  hardeningDisable = [ "all" ];
+
+  meta = {
+    description = "RISC-V Proxy Kernel and Bootloader.";
+    homepage = https://github.com/riscv/riscv-pk;
+    license = stdenv.lib.licenses.bsd3;
+    maintainers = [ stdenv.lib.maintianers.shlevy ];
+  };
+}