ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / nr / nrpl / package.nix
blobc842d16ba9a98197a0c3c9ca23e62f93a7868377
1 { lib, buildNimPackage, fetchFromGitHub, fetchpatch, makeWrapper, nim, pcre, tinycc }:
3 buildNimPackage {
4   pname = "nrpl";
5   version = "20150522";
7   src = fetchFromGitHub {
8     owner  = "wheineman";
9     repo   = "nrpl";
10     rev    = "6d6c189ab7d1c905cc29dc678d66e9e132026f69";
11     hash = "sha256-YpP1LJKX3cTPficoBUBGnUETwQX5rDCyIMxylSFNnrI=";
12   };
14   nativeBuildInputs = [ makeWrapper ];
15   buildInputs = [ pcre ];
17   patches = [
18     (fetchpatch {
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=";
22     })
23   ];
25   NIX_LDFLAGS = "-lpcre";
27   postFixup = ''
28     wrapProgram $out/bin/nrpl \
29       --prefix PATH : ${lib.makeBinPath [ nim tinycc ]}
30   '';
32   meta = with lib; {
33     description = "REPL for the Nim programming language";
34     mainProgram = "nrpl";
35     homepage = "https://github.com/wheineman/nrpl";
36     license = licenses.mit;
37     maintainers = with maintainers; [ peterhoeg ];
38     platforms = with platforms; linux ++ darwin;
39   };