Unverified Commit 138c537d authored by Alex James's avatar Alex James
Browse files

shadowsocks-libev: misc cleanup

- Replace rec with finalAttrs pattern
- Switch to SRI hashes
- Drop use of with lib;
parent 7db5fddc
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -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;
  };
}
})