generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
50 lines (40 loc) · 1010 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, fetchFromGitHub
, buildPythonApplication
#, argparse-manpage # TODO
, chardet
}:
let
rev = "4467bd46a7a798f738247a7f090c1505176bd597";
sha256 = "0yf3pc3fws4nnh4nd8d3jpglmsyi69d17qqgpcnkpqca5l4cd25w";
in
buildPythonApplication rec {
pname = "rpl";
version = builtins.substring 0 7 rev;
# Tests not included in pip package.
doCheck = false;
# FIXME ImportError: No module named build_manpages.build_manpages
#src = /home/user/src/nixos/milahu--nixos-packages/nur-packages/pkgs/rpl/rpl;
src = fetchFromGitHub {
owner = "rrthomas";
repo = "rpl";
inherit rev sha256;
};
patches = [
./remove-argparse-manpage.diff
];
buildInputs = [
#argparse-manpage # TODO
chardet
];
installPhase = ''
mkdir -p $out/bin
mv rpl $out/bin
'';
meta = with lib; {
description = "Replace strings in files";
homepage = "https://github.com/rrthomas/rpl";
license = licenses.gpl2;
maintainers = with maintainers; [ teto ];
};
}