1 { lib, buildNimPackage, fetchFromGitHub, fetchpatch, makeWrapper, nim, pcre, tinycc }:
7 src = fetchFromGitHub {
10 rev = "6d6c189ab7d1c905cc29dc678d66e9e132026f69";
11 hash = "sha256-YpP1LJKX3cTPficoBUBGnUETwQX5rDCyIMxylSFNnrI=";
14 nativeBuildInputs = [ makeWrapper ];
15 buildInputs = [ pcre ];
19 url = "https://patch-diff.githubusercontent.com/raw/wheineman/nrpl/pull/12.patch";
20 name = "update_for_new_nim.patch";
21 hash = "sha256-4fFj1RAxvQC9ysRBFlbEfMRPCzi+Rcu6lYEOC208zv0=";
25 NIX_LDFLAGS = "-lpcre";
28 wrapProgram $out/bin/nrpl \
29 --prefix PATH : ${lib.makeBinPath [ nim tinycc ]}
33 description = "REPL for the Nim programming language";
35 homepage = "https://github.com/wheineman/nrpl";
36 license = licenses.mit;
37 maintainers = with maintainers; [ peterhoeg ];
38 platforms = with platforms; linux ++ darwin;