nixpkgs/pkgs/development/tools/nrpl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-02 16:16:56 +00:00
{ lib, nimPackages, fetchFromGitHub, fetchpatch, makeWrapper, pcre, tinycc }:
2016-12-30 08:30:13 +00:00
2021-09-02 16:16:56 +00:00
nimPackages.buildNimPackage {
pname = "nrpl";
2016-12-30 08:30:13 +00:00
version = "20150522";
2021-09-02 16:16:56 +00:00
nimBinOnly = true;
2016-12-30 08:30:13 +00:00
src = fetchFromGitHub {
owner = "wheineman";
repo = "nrpl";
rev = "6d6c189ab7d1c905cc29dc678d66e9e132026f69";
sha256 = "1cly9lhrawnc42r31b7r0p0i6hcx8r00aa17gv7w9pcpj8ngb4v2";
};
nativeBuildInputs = [ makeWrapper ];
2021-09-02 16:16:56 +00:00
buildInputs = [ pcre ];
2016-12-30 08:30:13 +00:00
patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/wheineman/nrpl/pull/12.patch";
2016-12-30 08:30:13 +00:00
name = "update_for_new_nim.patch";
sha256 = "1zff7inhn3l1jnxcnidy705lzi3wqib1chf4rayh1g9i23an7wg1";
})
];
2019-10-30 11:34:47 +00:00
NIX_LDFLAGS = "-lpcre";
2016-12-30 08:30:13 +00:00
postFixup = ''
wrapProgram $out/bin/nrpl \
2021-09-02 16:16:56 +00:00
--prefix PATH : ${lib.makeBinPath [ nimPackages.nim tinycc ]}
2016-12-30 08:30:13 +00:00
'';
meta = with lib; {
2016-12-30 08:30:13 +00:00
description = "REPL for the Nim programming language";
homepage = "https://github.com/wheineman/nrpl";
2016-12-30 08:30:13 +00:00
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
platforms = with platforms; linux ++ darwin;
};
}