mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
19 lines
342 B
Nix
19 lines
342 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
|
|
'';
|
|
meta.mainProgram = "print-reexports";
|
|
}
|