about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/rcm/default.nix
blob: bd03b591b17c0d2e62b837a30b1bf0d4fcdaf4f5 (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
27
28
29
30
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation rec {
  pname = "rcm";
  version = "1.3.5";

  src = fetchurl {
    url = "https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz";
    sha256 = "sha256-JHQefybxagSTJLqoavcARDxCgeLN4JlynXTE1LKevi0=";
  };

  patches = [ ./fix-rcmlib-path.patch ];

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

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