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.
20 lines
482 B
Nix
20 lines
482 B
Nix
{ lib, stdenv, nim }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "nim_builder";
|
|
inherit (nim) version;
|
|
dontUnpack = true;
|
|
nativeBuildInputs = [ nim ];
|
|
buildPhase = ''
|
|
cp ${./nim_builder.nim} nim_builder.nim
|
|
nim c --nimcache:$TMPDIR nim_builder
|
|
'';
|
|
installPhase = ''
|
|
install -Dt $out/bin nim_builder
|
|
'';
|
|
meta = {
|
|
description = "Internal Nixpkgs utility for buildNimPackage.";
|
|
mainProgram = "nim_builder";
|
|
maintainers = [ lib.maintainers.ehmry ];
|
|
};
|
|
}
|