about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/darwin/print-reexports/default.nix
blob: 992cf1bff8ea3a50e93b5588dd658ee9118bcb74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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";
}