core/pkgs/by-name/da/darwin/packages/print-reexports/default.nix
2024-05-13 11:34:52 -04:00

19 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";
}