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
Michael Alyn Miller 41de5f60cd rcm: Use Nix store path for RCM_LIB
The shell scripts in the rcm package use a relative path in order to
find the rcm.sh library.  That works fine when rcm is installed with
nix-env -- ~/.nix-profile/share/rcm exists as expected -- but does not
work when installed via /etc/nixos/configuration.nix.  In the
system-wide case, /run/current-system/sw/share does not contain the rcm
directory.
2015-01-25 14:59:04 -08:00

26 lines
593 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "rcm-1.2.3";
src = fetchurl {
url = https://thoughtbot.github.io/rcm/dist/rcm-1.2.3.tar.gz;
sha256 = "0gwpclbc152jkclj3w83s2snx3dcgljwr75q1z8czl3yar7d8bsh";
};
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 ];
};
}