587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
18 lines
342 B
Nix
18 lines
342 B
Nix
{ lib, stdenv, libyaml }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "print-reexports";
|
|
src = lib.sourceFilesBySuffices ./. [".c"];
|
|
|
|
buildInputs = [ libyaml ];
|
|
|
|
buildPhase = ''
|
|
$CC -lyaml -o print-reexports main.c
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv print-reexports $out/bin
|
|
'';
|
|
meta.mainProgram = "print-reexports";
|
|
}
|