core/pkgs/by-name/da/darwin/packages/print-reexports/default.nix

19 lines
342 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ 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";
}