mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
Merge pull request #5959 from malyn/fix-rcm-paths
rcm: Use Nix store path for RCM_LIB
This commit is contained in:
commit
da91fff493
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
name = "rcm-1.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
|
@ -8,9 +8,18 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0gwpclbc152jkclj3w83s2snx3dcgljwr75q1z8czl3yar7d8bsh";
|
||||
};
|
||||
|
||||
meta = {
|
||||
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 = stdenv.lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ malyn ];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
68
pkgs/tools/misc/rcm/fix-rcmlib-path.patch
Normal file
68
pkgs/tools/misc/rcm/fix-rcmlib-path.patch
Normal file
|
@ -0,0 +1,68 @@
|
|||
*** rcm-1.2.3/bin/lsrc.in.orig 2014-05-09 04:57:39.000000000 -0700
|
||||
--- rcm-1.2.3/bin/lsrc.in 2015-01-24 14:27:48.786595479 -0800
|
||||
***************
|
||||
*** 1,6 ****
|
||||
#!@SHELL@
|
||||
|
||||
! : ${RCM_LIB:=$(dirname "$0")/../share/rcm}
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
pushdir() {
|
||||
--- 1,6 ----
|
||||
#!@SHELL@
|
||||
|
||||
! RCM_LIB=@rcm@/share/rcm
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
pushdir() {
|
||||
*** rcm-1.2.3/bin/mkrc.in.orig 2014-05-09 04:57:39.000000000 -0700
|
||||
--- rcm-1.2.3/bin/mkrc.in 2015-01-24 14:27:48.786595479 -0800
|
||||
***************
|
||||
*** 1,6 ****
|
||||
#!@SHELL@
|
||||
|
||||
! : ${RCM_LIB:=$(dirname "$0")/../share/rcm}
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
destination() {
|
||||
--- 1,6 ----
|
||||
#!@SHELL@
|
||||
|
||||
! RCM_LIB=@rcm@/share/rcm
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
destination() {
|
||||
*** rcm-1.2.3/bin/rcdn.in.orig 2014-05-09 04:57:39.000000000 -0700
|
||||
--- rcm-1.2.3/bin/rcdn.in 2015-01-24 14:27:48.786595479 -0800
|
||||
***************
|
||||
*** 1,6 ****
|
||||
#!@SHELL@
|
||||
|
||||
! : ${RCM_LIB:=$(dirname "$0")/../share/rcm}
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
remove_link() {
|
||||
--- 1,6 ----
|
||||
#!@SHELL@
|
||||
|
||||
! RCM_LIB=@rcm@/share/rcm
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
remove_link() {
|
||||
*** rcm-1.2.3/bin/rcup.in.orig 2014-05-09 04:57:39.000000000 -0700
|
||||
--- rcm-1.2.3/bin/rcup.in 2015-01-24 14:27:48.786595479 -0800
|
||||
***************
|
||||
*** 1,6 ****
|
||||
#!@SHELL@
|
||||
|
||||
! : ${RCM_LIB:=$(dirname "$0")/../share/rcm}
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
link_or_copy() {
|
||||
--- 1,6 ----
|
||||
#!@SHELL@
|
||||
|
||||
! RCM_LIB=@rcm@/share/rcm
|
||||
. "$RCM_LIB/rcm.sh"
|
||||
|
||||
link_or_copy() {
|
Loading…
Reference in a new issue