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 ```
31 lines
809 B
Nix
31 lines
809 B
Nix
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "watson-ruby";
|
|
version = (import ./gemset.nix).watson-ruby.version;
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = let
|
|
env = bundlerEnv {
|
|
name = "watson-ruby-gems-${version}";
|
|
inherit ruby;
|
|
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
|
gemdir = ./.;
|
|
};
|
|
in ''
|
|
mkdir -p $out/bin
|
|
ln -s ${env}/bin/watson $out/bin/watson
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "watson-ruby";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An inline issue manager";
|
|
homepage = https://goosecode.com/watson/;
|
|
license = with licenses; mit;
|
|
maintainers = with maintainers; [ robertodr nicknovitski ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|