2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, libyaml }:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "print-reexports";
|
2021-02-05 17:12:51 +00:00
|
|
|
src = lib.sourceFilesBySuffices ./. [".c"];
|
2020-11-19 00:13:47 +00:00
|
|
|
|
|
|
|
buildInputs = [ libyaml ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2021-05-28 09:39:13 +00:00
|
|
|
$CC -lyaml -o print-reexports main.c
|
2020-11-19 00:13:47 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2021-05-28 09:39:13 +00:00
|
|
|
mv print-reexports $out/bin
|
2020-11-19 00:13:47 +00:00
|
|
|
'';
|
|
|
|
}
|