diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2021-09-22 18:35:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 18:35:38 +0000 |
commit | 4bc83aaffa715e2bc34842c9516b68debff03cd6 (patch) | |
tree | 9a8a5e36c7e483a018fe5884855f73c2e2d4965c /pkgs/development/tools/nrpl/default.nix | |
parent | f9fc7ee26e42f4295ffb38e1749d53e3d317a5df (diff) | |
parent | bea75890b777e299a6b0709c33686bb69d21dbd4 (diff) | |
download | nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.tar nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.tar.gz nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.tar.bz2 nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.tar.lz nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.tar.xz nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.tar.zst nixlib-4bc83aaffa715e2bc34842c9516b68debff03cd6.zip |
Merge pull request #136489 from ehmry/nimPackages
nimpackages / buildNimPackage
Diffstat (limited to 'pkgs/development/tools/nrpl/default.nix')
-rw-r--r-- | pkgs/development/tools/nrpl/default.nix | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/pkgs/development/tools/nrpl/default.nix b/pkgs/development/tools/nrpl/default.nix index 67a86ca8dec5..84147faf74e5 100644 --- a/pkgs/development/tools/nrpl/default.nix +++ b/pkgs/development/tools/nrpl/default.nix @@ -1,8 +1,9 @@ -{ stdenv, lib, fetchFromGitHub, fetchpatch, makeWrapper, nim, pcre, tinycc }: +{ lib, nimPackages, fetchFromGitHub, fetchpatch, makeWrapper, pcre, tinycc }: -stdenv.mkDerivation { +nimPackages.buildNimPackage { pname = "nrpl"; version = "20150522"; + nimBinOnly = true; src = fetchFromGitHub { owner = "wheineman"; @@ -12,7 +13,7 @@ stdenv.mkDerivation { }; nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ nim pcre ]; + buildInputs = [ pcre ]; patches = [ (fetchpatch { @@ -24,16 +25,9 @@ stdenv.mkDerivation { NIX_LDFLAGS = "-lpcre"; - buildPhase = '' - HOME=$TMPDIR - nim c -d:release nrpl.nim - ''; - - installPhase = "install -Dt $out/bin nrpl"; - postFixup = '' wrapProgram $out/bin/nrpl \ - --prefix PATH : ${lib.makeBinPath [ nim tinycc ]} + --prefix PATH : ${lib.makeBinPath [ nimPackages.nim tinycc ]} ''; meta = with lib; { |