2014-10-25 22:17:26 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2017-01-26 04:42:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rcm-${version}";
|
|
|
|
version = "1.3.1";
|
2014-10-25 22:17:26 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-01-26 04:42:30 +00:00
|
|
|
url = "https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz";
|
|
|
|
sha256 = "9c8f92dba63ab9cb8a6b3d0ccf7ed8edf3f0fb388b044584d74778145fae7f8f";
|
2014-10-25 22:17:26 +00:00
|
|
|
};
|
2017-01-26 04:42:30 +00:00
|
|
|
|
2015-01-25 17:52:46 +00: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-25 22:17:26 +00:00
|
|
|
description = "Management Suite for Dotfiles";
|
|
|
|
homepage = https://github.com/thoughtbot/rcm;
|
2015-01-25 17:52:46 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ malyn ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; unix;
|
2014-10-25 22:17:26 +00:00
|
|
|
};
|
2015-01-25 17:52:46 +00:00
|
|
|
}
|