shadowsocks-libev: misc cleanup
- Replace rec with finalAttrs pattern - Switch to SRI hashes - Drop use of with lib;
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
libxslt,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "shadowsocks-libev";
|
||||
version = "3.3.5";
|
||||
|
||||
@@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "shadowsocks";
|
||||
repo = "shadowsocks-libev";
|
||||
tag = "v${version}";
|
||||
sha256 = "1iqpmhxk354db1x08axg6wrdy9p9a4mz0h9351i3mf3pqd1v6fdw";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-vDmzQ8N3uDpiKCNB8CtR6SbfMjevKwR6WI2UMTusF8c=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
@@ -79,15 +79,15 @@ stdenv.mkDerivation rec {
|
||||
cp lib/* $out/lib
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Lightweight secured SOCKS5 proxy";
|
||||
longDescription = ''
|
||||
Shadowsocks-libev is a lightweight secured SOCKS5 proxy for embedded devices and low-end boxes.
|
||||
It is a port of Shadowsocks created by @clowwindy, which is maintained by @madeye and @linusyang.
|
||||
'';
|
||||
homepage = "https://github.com/shadowsocks/shadowsocks-libev";
|
||||
license = licenses.gpl3Plus;
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = [ ];
|
||||
platforms = platforms.all;
|
||||
platforms = lib.platforms.all;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user