mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-05 10:09:04 +03:00
msm-fb-refresher: inits at 0.1
This commit is contained in:
parent
7ec11f4bdf
commit
f333d8b8f8
25
overlay/msm-fb-refresher/default.nix
Normal file
25
overlay/msm-fb-refresher/default.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{stdenv, fetchurl, python2, dtc, python2Packages}:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "0.1";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit version;
|
||||||
|
name = "msm-fb-refresher";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/AsteroidOS/msm-fb-refresher/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "1ndnpx8ah121k9pm40s254hlyks9zabpnsc4sj4rgc5rzwf31wi5";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
gcc refresher.c -o refresher.o -c
|
||||||
|
gcc refresher.o -o msm-fb-refresher
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp -v msm-fb-refresher $out/bin/
|
||||||
|
chmod +x $out/bin/*
|
||||||
|
'';
|
||||||
|
}
|
@ -17,4 +17,6 @@ in
|
|||||||
dtbTool = callPackage ./dtbtool { };
|
dtbTool = callPackage ./dtbtool { };
|
||||||
|
|
||||||
mkbootimg = callPackage ./mkbootimg { };
|
mkbootimg = callPackage ./mkbootimg { };
|
||||||
|
|
||||||
|
msm-fb-refresher = callPackage ./msm-fb-refresher { };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user