mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
alot: refactoring - use substituteInPlace replace-fail
This commit is contained in:
parent
53f3f689be
commit
8822e62822
@ -31,7 +31,7 @@ with python311.pkgs; buildPythonApplication rec {
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace alot/settings/manager.py \
|
substituteInPlace alot/settings/manager.py \
|
||||||
--replace /usr/share "$out/share"
|
--replace-fail /usr/share "$out/share"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -85,7 +85,7 @@ with python311.pkgs; buildPythonApplication rec {
|
|||||||
cp -r extra/themes $out/share/alot
|
cp -r extra/themes $out/share/alot
|
||||||
|
|
||||||
substituteInPlace extra/completion/alot-completion.zsh \
|
substituteInPlace extra/completion/alot-completion.zsh \
|
||||||
--replace "python3" "${completionPython.interpreter}"
|
--replace-fail "python3" "${completionPython.interpreter}"
|
||||||
install -D extra/completion/alot-completion.zsh $out/share/zsh/site-functions/_alot
|
install -D extra/completion/alot-completion.zsh $out/share/zsh/site-functions/_alot
|
||||||
|
|
||||||
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
|
sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user