summary refs log tree commit diff
path: root/pkgs/tools/misc/rcm/default.nix
blob: 82b831207a936ec554ad7de389e6b40a0e5982ff (plain) (blame)
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
{ stdenv, fetchurl }:

stdenv.mkDerivation {
  name = "rcm-1.3.0";

  src = fetchurl {
    url = https://thoughtbot.github.io/rcm/dist/rcm-1.3.0.tar.gz;
    sha256 = "ddcf638b367b0361d8e063c29fd573dbe1712d1b83e8d5b3a868e4aa45ffc847";
  };
 
  patches = [ ./fix-rcmlib-path.patch ];

  postPatch = ''
    for f in bin/*.in; do
      substituteInPlace $f --subst-var-by rcm $out
    done
  '';

  meta = with stdenv.lib; {
    description = "Management Suite for Dotfiles";
    homepage = https://github.com/thoughtbot/rcm;
    license = licenses.bsd3;
    maintainers = with maintainers; [ malyn ];
    platforms = with platforms; unix;
  };
}