tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nrpl: init at 20150521
Peter Hoeg
9 years ago
7a720abc
c311871a
+45
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
nrpl
default.nix
top-level
all-packages.nix
+44
pkgs/development/tools/nrpl/default.nix
···
1
1
+
{ stdenv, lib, fetchFromGitHub, fetchpatch, makeWrapper, nim, pcre, tinycc }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "nrpl-${version}";
5
5
+
version = "20150522";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "wheineman";
9
9
+
repo = "nrpl";
10
10
+
rev = "6d6c189ab7d1c905cc29dc678d66e9e132026f69";
11
11
+
sha256 = "1cly9lhrawnc42r31b7r0p0i6hcx8r00aa17gv7w9pcpj8ngb4v2";
12
12
+
};
13
13
+
14
14
+
buildInputs = [ makeWrapper nim pcre ];
15
15
+
16
16
+
patches = [
17
17
+
(fetchpatch {
18
18
+
url = https://patch-diff.githubusercontent.com/raw/wheineman/nrpl/pull/12.patch;
19
19
+
name = "update_for_new_nim.patch";
20
20
+
sha256 = "1zff7inhn3l1jnxcnidy705lzi3wqib1chf4rayh1g9i23an7wg1";
21
21
+
})
22
22
+
];
23
23
+
24
24
+
NIX_LDFLAGS = [
25
25
+
"-lpcre"
26
26
+
];
27
27
+
28
28
+
buildPhase = "nim c -d:release nrpl.nim";
29
29
+
30
30
+
installPhase = "install -Dt $out/bin nrpl";
31
31
+
32
32
+
postFixup = ''
33
33
+
wrapProgram $out/bin/nrpl \
34
34
+
--prefix PATH : ${lib.makeBinPath [ nim tinycc ]}
35
35
+
'';
36
36
+
37
37
+
meta = with stdenv.lib; {
38
38
+
description = "REPL for the Nim programming language";
39
39
+
homepage = https://github.com/wheineman/nrpl;
40
40
+
license = licenses.mit;
41
41
+
maintainers = with maintainers; [ peterhoeg ];
42
42
+
platforms = with platforms; linux ++ darwin;
43
43
+
};
44
44
+
}
+1
pkgs/top-level/all-packages.nix
···
5223
5223
5224
5224
nim = callPackage ../development/compilers/nim { };
5225
5225
nimble = callPackage ../development/tools/nimble { };
5226
5226
+
nrpl = callPackage ../development/tools/nrpl { };
5226
5227
5227
5228
neko = callPackage ../development/compilers/neko { };
5228
5229