mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 14:43:47 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
841 B
Nix
29 lines
841 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "shadowsocks-v2ray-plugin";
|
|
version = "1.3.1";
|
|
# Version 1.3.2 has runtime failures with Go 1.19
|
|
# https://github.com/NixOS/nixpkgs/issues/219343
|
|
# https://github.com/shadowsocks/v2ray-plugin/issues/292
|
|
# nixpkgs-update: no auto update
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shadowsocks";
|
|
repo = "v2ray-plugin";
|
|
rev = "v${version}";
|
|
hash = "sha256-iwfjINY/NQP9poAcCHz0ETxu0Nz58AmD7i1NbF8hBCs=";
|
|
};
|
|
|
|
vendorHash = "sha256-3/1te41U4QQTMeoA1y43QMfJyiM5JhaLE0ORO8ZO7W8=";
|
|
|
|
meta = with lib; {
|
|
description = "Yet another SIP003 plugin for shadowsocks, based on v2ray";
|
|
homepage = "https://github.com/shadowsocks/v2ray-plugin/";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ahrzb ];
|
|
mainProgram = "v2ray-plugin";
|
|
};
|
|
}
|
|
|