nixpkgs-suyu/pkgs/os-specific/darwin/apple-sdk/print-reexports/default.nix
2021-01-17 23:26:08 +07:00

17 lines
282 B
Nix

{ lib, stdenv, libyaml }:
stdenv.mkDerivation {
name = "print-reexports";
src = lib.sourceFilesBySuffices ./. [".c"];
buildInputs = [ libyaml ];
buildPhase = ''
$CC -lyaml -o $name main.c
'';
installPhase = ''
mkdir -p $out/bin
mv $name $out/bin
'';
}