1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/tools/misc/rcm/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

28 lines
657 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "rcm";
version = "1.3.3";
src = fetchurl {
url = "https://thoughtbot.github.io/rcm/dist/rcm-${version}.tar.gz";
sha256 = "1bqk7rrp1ckzvsvl9wghsr77m8xl3a7yc5gqdsisz492dx2j8mck";
};
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;
};
}