1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-03 05:28:07 +03:00

msm-fb-refresher: inits at 0.1

This commit is contained in:
Samuel Dionne-Riel 2018-06-10 18:21:09 +00:00
parent 7ec11f4bdf
commit f333d8b8f8
2 changed files with 27 additions and 0 deletions

View 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/*
'';
}

View File

@ -17,4 +17,6 @@ in
dtbTool = callPackage ./dtbtool { };
mkbootimg = callPackage ./mkbootimg { };
msm-fb-refresher = callPackage ./msm-fb-refresher { };
}