2
0

Add rtc-dummy driver

This commit is contained in:
Ehmry - 2020-06-03 16:47:26 +05:30
parent 40c1977779
commit 3f646b6fa6
3 changed files with 28 additions and 0 deletions

View File

@ -91,6 +91,8 @@ in depotPkgs // {
NOVA = callPackage ./NOVA { };
rtc-dummy = callPackage ./rtc-dummy { };
solo5 = let drv = callPackage ./solo5 { };
in drv // { tests = drv.tests // { pname = "solo5-tests"; }; };

View File

@ -27,6 +27,8 @@ with ports; {
posix.portInputs = [ libc ];
rtc_drv.meta.platforms = [ "x86_64-genode" ];
rump = {
portInputs = [ dde_rump ];
buildInputs = with buildPackages; [ zlib ];

View File

@ -0,0 +1,24 @@
# SPDX-License-Identifier: CC0-1.0
{ stdenv, fetchgit, tup }:
stdenv.mkDerivation rec {
pname = "rtc_dummy";
version = "0.0.0";
nativeBuildInputs = [ tup ];
src = fetchgit {
url = "https://git.sr.ht/~ehmry/rtc-dummy";
rev = "42c8a0453853816b99c56fc7bde8e1039b2ec0a7";
sha256 = "1rs081cxwbf2sra383j7r9xrg12gqf591hiyb4h2h3qa9pc6p602";
};
installPhase = "install -Dm755 ./rtc-dummy $out/rtc_drv";
meta = with stdenv.lib; {
license = licenses.agpl3;
maintainers = [ maintainers.ehmry ];
};
}