1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "rcm-${version}";
5 version = "1.3.3";
6
7 src = fetchurl {
8 url = "https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz";
9 sha256 = "1bqk7rrp1ckzvsvl9wghsr77m8xl3a7yc5gqdsisz492dx2j8mck";
10 };
11
12 patches = [ ./fix-rcmlib-path.patch ];
13
14 postPatch = ''
15 for f in bin/*.in; do
16 substituteInPlace $f --subst-var-by rcm $out
17 done
18 '';
19
20 meta = with stdenv.lib; {
21 description = "Management Suite for Dotfiles";
22 homepage = https://github.com/thoughtbot/rcm;
23 license = licenses.bsd3;
24 maintainers = with maintainers; [ malyn ];
25 platforms = with platforms; unix;
26 };
27}