forked from mirrors/nixpkgs
commit
3836bf0297
|
@ -1,4 +1,7 @@
|
||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, python3
|
||||||
, withPlatform ? "generic"
|
, withPlatform ? "generic"
|
||||||
, withPayload ? null
|
, withPayload ? null
|
||||||
, withFDT ? null
|
, withFDT ? null
|
||||||
|
@ -6,19 +9,21 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "opensbi";
|
pname = "opensbi";
|
||||||
version = "1.1";
|
version = "1.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "riscv-software-src";
|
owner = "riscv-software-src";
|
||||||
repo = "opensbi";
|
repo = "opensbi";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-k6f4/lWY/f7qqk0AFY4tdEi4cDilSv/jngaJYhKFlnY=";
|
sha256 = "sha256-Zcl+SE2nySMycV/ozsl4AvGipRsMblA5mt3oVZ81Z44=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs ./scripts
|
patchShebangs ./scripts
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ python3 ];
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"I=$(out)"
|
"I=$(out)"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue