1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
mobile-nixos/overlay/msm-fb-handle/default.nix
2018-07-06 19:53:57 -04:00

25 lines
378 B
Nix

{stdenv}:
let
version = "0.1";
in
stdenv.mkDerivation {
inherit version;
name = "msm-fb-handle";
src = ./main.c;
unpackCmd = "mkdir -v src ; cp -v $curSrc src/main.c";
CC = "${stdenv.cc}/bin/gcc";
buildPhase = ''
$CC main.c -o msm-fb-handle
'';
installPhase = ''
mkdir -p $out/bin
cp -v msm-fb-handle $out/bin/
chmod +x $out/bin/*
'';
}