mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03: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 ```
32 lines
836 B
Nix
32 lines
836 B
Nix
{stdenv, fetchurl, emacs}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "org-mac-link-1.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://raw.githubusercontent.com/stuartsierra/org-mode/master/contrib/lisp/org-mac-link.el";
|
|
sha256 = "1gkzlfbhg289r1hbqd25szan1wizgk6s99h9xxjip5bjv0jywcx5";
|
|
};
|
|
|
|
phases = [ "buildPhase" "installPhase"];
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
buildPhase = ''
|
|
cp $src org-mac-link.el
|
|
emacs --batch -f batch-byte-compile org-mac-link.el
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -d $out/share/emacs/site-lisp
|
|
install org-mac-link.el $out/share/emacs/site-lisp
|
|
'';
|
|
|
|
meta = {
|
|
description = "Insert org-mode links to items selected in various Mac apps";
|
|
homepage = https://orgmode.org/worg/org-contrib/org-mac-link.html;
|
|
license = stdenv.lib.licenses.gpl3;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|