mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
20 lines
481 B
Nix
20 lines
481 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 ];
|
|
};
|
|
}
|