mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
oh-my-fish: patch to fixup permissions during installation
TODO: send it to upstream
This commit is contained in:
parent
dbed3c605f
commit
a25d87618a
12
pkgs/by-name/oh/oh-my-fish/001-writable-omf-path.diff
Normal file
12
pkgs/by-name/oh/oh-my-fish/001-writable-omf-path.diff
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff -Naur source/bin/install source-new/bin/install
|
||||||
|
--- source/bin/install 1969-12-31 21:00:01.000000000 -0300
|
||||||
|
+++ source-new/bin/install 2023-11-23 12:48:55.695330320 -0300
|
||||||
|
@@ -245,6 +245,8 @@
|
||||||
|
command cp -r "$OFFLINE_PATH" "$OMF_PATH"
|
||||||
|
or abort "Failed to copy source!"
|
||||||
|
|
||||||
|
+ chmod -R u+w "$OMF_PATH"
|
||||||
|
+
|
||||||
|
# Set up Git remotes only if the offline install is a Git repository.
|
||||||
|
test -d "$OMF_PATH/.git"
|
||||||
|
and set_git_remotes
|
|
@ -17,6 +17,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-msItKEPe7uSUpDAfCfdYZjt5NyfM3KtOrLUTO9NGqlg=";
|
hash = "sha256-msItKEPe7uSUpDAfCfdYZjt5NyfM3KtOrLUTO9NGqlg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./001-writable-omf-path.diff
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fish
|
fish
|
||||||
];
|
];
|
||||||
|
@ -54,7 +58,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
easy to use.
|
easy to use.
|
||||||
'';
|
'';
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
maintainers = with lib.maintainers; [ ];
|
||||||
mainProgram = "omf-install";
|
mainProgram = "omf-install";
|
||||||
inherit (fish.meta) platforms;
|
inherit (fish.meta) platforms;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue