mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
urlview: fix path to url_handler.sh
By default, `/etc/urlview/url_handler.sh` is used which breaks by default with the following error: ``` sh: /etc/urlview/url_handler.sh: No such file or directory ``` With this change, the script will be copied to `$out` and `urlview` will be patched accordingly.
This commit is contained in:
parent
1a1a7ed266
commit
8cd9b85bb3
@ -31,10 +31,21 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = debianPatches;
|
||||
|
||||
meta = {
|
||||
postPatch = ''
|
||||
substituteInPlace urlview.c \
|
||||
--replace '/etc/urlview/url_handler.sh' "$out/etc/urlview/url_handler.sh"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm755 url_handler.sh $out/etc/urlview/url_handler.sh
|
||||
patchShebangs $out/etc/urlview
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Extract URLs from text";
|
||||
homepage = https://packages.qa.debian.org/u/urlview.html;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||
license = licenses.gpl2;
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user