aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/os-specific/darwin/apple-sdk/print-reexports/default.nix
blob: 85e11096f06a0949270edea45ee3c5bd8e9ccccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ stdenv, libyaml }:

stdenv.mkDerivation {
  name = "print-reexports";
  src = stdenv.lib.sourceFilesBySuffices ./. [".c"];

  buildInputs = [ libyaml ];

  buildPhase = ''
    $CC -lyaml -o $name main.c
  '';

  installPhase = ''
    mkdir -p $out/bin
    mv $name $out/bin
  '';
}