mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
18 lines
302 B
Nix
18 lines
302 B
Nix
{ 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
|
|
'';
|
|
}
|