mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
593e11fd94
According to https://repology.org/repository/nix_unstable/problems, we have a lot of packages that have http links that redirect to https as their homepage. This commit updates all these packages to use the https links as their homepage. The following script was used to make these updates: ``` curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq '.[] | .problem' -r \ | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \ | sort | uniq > script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ```
47 lines
1.6 KiB
Nix
47 lines
1.6 KiB
Nix
{ stdenv, fetchurl, perlPackages, makeWrapper, imagemagick, gdk-pixbuf, librsvg
|
|
, hicolor-icon-theme, procps
|
|
}:
|
|
|
|
let
|
|
perlModules = with perlPackages;
|
|
[ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
|
|
Gtk2Unique FileBaseDir FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
|
|
XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
|
|
ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWP JSON
|
|
PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONMaybeXS
|
|
commonsense HTTPCookies NetOAuth PathClass GooCanvas X11Protocol Cairo
|
|
EncodeLocale TryTiny TypesSerialiser LWPMediaTypes
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "shutter-0.94.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/shutter/0.9x/0.94.3/+download/shutter-0.94.3.tar.gz";
|
|
sha256 = "01wv5k6zqfqa2rss461lpdpjxpfk4awzfdc6j2qk6bh4g4zgmgl5";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ perlPackages.perl procps gdk-pixbuf librsvg ] ++ perlModules;
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out"
|
|
cp -a . "$out"
|
|
(cd "$out" && mv CHANGES README COPYING "$out/share/doc/shutter")
|
|
|
|
wrapProgram $out/bin/shutter \
|
|
--set PERL5LIB "${perlPackages.makePerlPath perlModules}" \
|
|
--prefix PATH : "${imagemagick.out}/bin" \
|
|
--suffix XDG_DATA_DIRS : "${hicolor-icon-theme}/share" \
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Screenshot and annotation tool";
|
|
homepage = https://shutter-project.org/;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|