1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/overlay/msm-fb-refresher/default.nix

28 lines
545 B
Nix
Raw Normal View History

2018-06-10 23:07:39 +03:00
{stdenv, fetchurl}:
2018-06-10 21:21:09 +03:00
let
2019-09-25 05:58:42 +03:00
version = "0.2";
2018-06-10 21:21:09 +03:00
in
stdenv.mkDerivation {
inherit version;
name = "msm-fb-refresher";
src = fetchurl {
url = "https://github.com/AsteroidOS/msm-fb-refresher/archive/v${version}.tar.gz";
2019-09-25 05:58:42 +03:00
sha256 = "1w1kvk8kgmzh7v50sc24c9dkq4ix9pf65dscqzwikbaz537x5rkf";
2018-06-10 21:21:09 +03:00
};
2018-06-25 23:26:21 +03:00
CC = "${stdenv.cc}/bin/gcc";
2018-06-10 21:21:09 +03:00
buildPhase = ''
2018-06-25 23:26:21 +03:00
$CC refresher.c -o refresher.o -c
$CC refresher.o -o msm-fb-refresher
2018-06-10 21:21:09 +03:00
'';
installPhase = ''
mkdir -p $out/bin
cp -v msm-fb-refresher $out/bin/
chmod +x $out/bin/*
'';
}