mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 21:11:34 +03:00
25 lines
378 B
Nix
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/*
|
|
'';
|
|
}
|