2014-10-26 00:17:26 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2017-01-26 05:42:30 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rcm-${version}";
|
2018-07-18 04:57:24 +02:00
|
|
|
version = "1.3.3";
|
2014-10-26 00:17:26 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-01-26 05:42:30 +01:00
|
|
|
url = "https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz";
|
2018-07-18 04:57:24 +02:00
|
|
|
sha256 = "1bqk7rrp1ckzvsvl9wghsr77m8xl3a7yc5gqdsisz492dx2j8mck";
|
2014-10-26 00:17:26 +02:00
|
|
|
};
|
2017-01-26 05:42:30 +01:00
|
|
|
|
2015-01-25 18:52:46 +01:00
|
|
|
patches = [ ./fix-rcmlib-path.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in bin/*.in; do
|
|
|
|
substituteInPlace $f --subst-var-by rcm $out
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-10-26 00:17:26 +02:00
|
|
|
description = "Management Suite for Dotfiles";
|
|
|
|
homepage = https://github.com/thoughtbot/rcm;
|
2015-01-25 18:52:46 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ malyn ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; unix;
|
2014-10-26 00:17:26 +02:00
|
|
|
};
|
2015-01-25 18:52:46 +01:00
|
|
|
}
|