2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, libyaml }:
|
2020-09-18 09:10:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "print-reexports";
|
2021-01-15 14:45:37 +00:00
|
|
|
src = lib.sourceFilesBySuffices ./. [".c"];
|
2020-09-18 09:10:03 +01:00
|
|
|
|
|
|
|
buildInputs = [ libyaml ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
2020-11-19 07:48:10 +00:00
|
|
|
$CC -lyaml -o print-reexports main.c
|
2020-09-18 09:10:03 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2020-11-19 07:48:10 +00:00
|
|
|
mv print-reexports $out/bin
|
2020-09-18 09:10:03 +01:00
|
|
|
'';
|
|
|
|
}
|