mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
45398d7b54
Add a nimPackages attrset with "buildNimPackage" and "fetchNimble".
20 lines
449 B
Nix
20 lines
449 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.";
|
|
maintainers = [ lib.maintainers.ehmry ];
|
|
};
|
|
}
|