blob: a548d8da753f5b5bf5272a94e34add058c91c6d6 (
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 $name main.c
'';
installPhase = ''
mkdir -p $out/bin
mv $name $out/bin
'';
}
|