2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rcm";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-JHQefybxagSTJLqoavcARDxCgeLN4JlynXTE1LKevi0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./fix-rcmlib-path.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in bin/*.in; do
|
|
|
|
substituteInPlace $f --subst-var-by rcm $out
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/thoughtbot/rcm";
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Management Suite for Dotfiles";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ malyn AndersonTorres ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|