nixpkgs/pkgs/os-specific/darwin/print-reexports/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
342 B
Nix
Raw Permalink Normal View History

2021-01-15 14:45:37 +00:00
{ lib, stdenv, libyaml }:
stdenv.mkDerivation {
name = "print-reexports";
2021-01-15 14:45:37 +00:00
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";
}