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