Merge pull request #34818 from andir/syncthing-remove-ancient-versions

Syncthing remove ancient versions

authored by Andreas Rammhold and committed by GitHub d6d06b6c a6fd0387

-206
-35
pkgs/applications/networking/syncthing012/default.nix
··· 1 - { stdenv, lib, buildGoPackage, fetchFromGitHub }: 2 - 3 - buildGoPackage rec { 4 - name = "syncthing-${version}"; 5 - version = "0.12.15"; 6 - rev = "v${version}"; 7 - 8 - goPackagePath = "github.com/syncthing/syncthing"; 9 - 10 - src = fetchFromGitHub { 11 - inherit rev; 12 - owner = "syncthing"; 13 - repo = "syncthing"; 14 - sha256 = "0g4sj509h45iq6g7b0pl88rbbn7c7s01774yjc6bl376x1xrl6a1"; 15 - }; 16 - 17 - goDeps = ./deps.nix; 18 - 19 - postPatch = '' 20 - # Mostly a cosmetic change 21 - sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go 22 - ''; 23 - 24 - preBuild = '' 25 - export buildFlagsArray+=("-tags" "noupgrade release") 26 - ''; 27 - 28 - meta = { 29 - knownVulnerabilities = [ "CVE-2017-1000420" ]; 30 - homepage = https://www.syncthing.net/; 31 - description = "Open Source Continuous File Synchronization"; 32 - license = stdenv.lib.licenses.mpl20; 33 - platforms = with stdenv.lib.platforms; linux ++ freebsd ++ openbsd ++ netbsd; 34 - }; 35 - }
-128
pkgs/applications/networking/syncthing012/deps.nix
··· 1 - [ 2 - { 3 - goPackagePath = "golang.org/x/crypto"; 4 - fetch = { 5 - type = "git"; 6 - url = "https://go.googlesource.com/crypto"; 7 - rev = "575fdbe86e5dd89229707ebec0575ce7d088a4a6"; 8 - sha256 = "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa"; 9 - }; 10 - } 11 - { 12 - goPackagePath = "golang.org/x/net"; 13 - fetch = { 14 - type = "git"; 15 - url = "https://go.googlesource.com/net"; 16 - rev = "62ac18b461605b4be188bbc7300e9aa2bc836cd4"; 17 - sha256 = "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p"; 18 - }; 19 - } 20 - { 21 - goPackagePath = "github.com/rcrowley/go-metrics"; 22 - fetch = { 23 - type = "git"; 24 - url = "https://github.com/rcrowley/go-metrics"; 25 - rev = "1ce93efbc8f9c568886b2ef85ce305b2217b3de3"; 26 - sha256 = "06gg72krlmd0z3zdq6s716blrga95pyj8dc2f2psfbknbkyrkfqa"; 27 - }; 28 - } 29 - { 30 - goPackagePath = "github.com/kardianos/osext"; 31 - fetch = { 32 - type = "git"; 33 - url = "https://github.com/kardianos/osext"; 34 - rev = "29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc"; 35 - sha256 = "1mawalaz84i16njkz6f9fd5jxhcbxkbsjnav3cmqq2dncv2hyv8a"; 36 - }; 37 - } 38 - { 39 - goPackagePath = "github.com/bkaradzic/go-lz4"; 40 - fetch = { 41 - type = "git"; 42 - url = "https://github.com/bkaradzic/go-lz4"; 43 - rev = "74ddf82598bc4745b965729e9c6a463bedd33049"; 44 - sha256 = "1vdid8v0c2v2qhrg9rzn3l7ya1h34jirrxfnir7gv7w6s4ivdvc1"; 45 - }; 46 - } 47 - { 48 - goPackagePath = "github.com/calmh/luhn"; 49 - fetch = { 50 - type = "git"; 51 - url = "https://github.com/calmh/luhn"; 52 - rev = "0c8388ff95fa92d4094011e5a04fc99dea3d1632"; 53 - sha256 = "1hfj1lx7wdpifn16zqrl4xml6cj5gxbn6hfz1f46g2a6bdf0gcvs"; 54 - }; 55 - } 56 - { 57 - goPackagePath = "golang.org/x/text"; 58 - fetch = { 59 - type = "git"; 60 - url = "https://go.googlesource.com/text"; 61 - rev = "5eb8d4684c4796dd36c74f6452f2c0fa6c79597e"; 62 - sha256 = "1cjwm2pv42dbfqc6ylr7jmma902zg4gng5aarqrbjf1k2nf2vs14"; 63 - }; 64 - } 65 - { 66 - goPackagePath = "github.com/vitrun/qart"; 67 - fetch = { 68 - type = "git"; 69 - url = "https://github.com/vitrun/qart"; 70 - rev = "ccb109cf25f0cd24474da73b9fee4e7a3e8a8ce0"; 71 - sha256 = "0bhp768b8ha6f25dmhwn9q8m2lkbn4qnjf8n7pizk25jn5zjdvc8"; 72 - }; 73 - } 74 - { 75 - goPackagePath = "github.com/calmh/du"; 76 - fetch = { 77 - type = "git"; 78 - url = "https://github.com/calmh/du"; 79 - rev = "3c0690cca16228b97741327b1b6781397afbdb24"; 80 - sha256 = "1mv6mkbslfc8giv47kyl97ny0igb3l7jya5hc75sm54xi6g205wa"; 81 - }; 82 - } 83 - { 84 - goPackagePath = "github.com/calmh/xdr"; 85 - fetch = { 86 - type = "git"; 87 - url = "https://github.com/calmh/xdr"; 88 - rev = "e467b5aeb65ca8516fb3925c84991bf1d7cc935e"; 89 - sha256 = "1bi4b2xkjzcr0vq1wxz14i9943k71sj092dam0gdmr9yvdrg0nra"; 90 - }; 91 - } 92 - { 93 - goPackagePath = "github.com/juju/ratelimit"; 94 - fetch = { 95 - type = "git"; 96 - url = "https://github.com/juju/ratelimit"; 97 - rev = "772f5c38e468398c4511514f4f6aa9a4185bc0a0"; 98 - sha256 = "02rs61ay6sq499lxxszjsrxp33m6zklds1xrmnr5fk73vpqfa28p"; 99 - }; 100 - } 101 - { 102 - goPackagePath = "github.com/thejerf/suture"; 103 - fetch = { 104 - type = "git"; 105 - url = "https://github.com/thejerf/suture"; 106 - rev = "99c1f2d613756768fc4299acd9dc621e11ed3fd7"; 107 - sha256 = "094ksr2nlxhvxr58nbnzzk0prjskb21r86jmxqjr3rwg4rkwn6d4"; 108 - }; 109 - } 110 - { 111 - goPackagePath = "github.com/golang/snappy"; 112 - fetch = { 113 - type = "git"; 114 - url = "https://github.com/golang/snappy"; 115 - rev = "723cc1e459b8eea2dea4583200fd60757d40097a"; 116 - sha256 = "0bprq0qb46f5511b5scrdqqzskqqi2z8b4yh3216rv0n1crx536h"; 117 - }; 118 - } 119 - { 120 - goPackagePath = "github.com/syndtr/goleveldb"; 121 - fetch = { 122 - type = "git"; 123 - url = "https://github.com/syndtr/goleveldb"; 124 - rev = "1a9d62f03ea92815b46fcaab357cfd4df264b1a0"; 125 - sha256 = "04ywbif36fiah4fw0x2abr5q3p4fdhi6q57d5icc2mz03q889vhb"; 126 - }; 127 - } 128 - ]
-39
pkgs/applications/networking/syncthing013/default.nix
··· 1 - { stdenv, fetchgit, go }: 2 - 3 - stdenv.mkDerivation rec { 4 - version = "0.13.10"; 5 - name = "syncthing-${version}"; 6 - 7 - src = fetchgit { 8 - url = https://github.com/syncthing/syncthing; 9 - rev = "refs/tags/v${version}"; 10 - sha256 = "07q3j6mnrza719rnvbkdsmvlkyr2pch5sj2l204m5iy5mxaghpx7"; 11 - }; 12 - 13 - buildInputs = [ go ]; 14 - 15 - buildPhase = '' 16 - mkdir -p src/github.com/syncthing 17 - ln -s $(pwd) src/github.com/syncthing/syncthing 18 - export GOPATH=$(pwd) 19 - 20 - # Syncthing's build.go script expects this working directory 21 - cd src/github.com/syncthing/syncthing 22 - 23 - go run build.go -no-upgrade -version v${version} install all 24 - ''; 25 - 26 - installPhase = '' 27 - mkdir -p $out/bin 28 - cp bin/* $out/bin 29 - ''; 30 - 31 - meta = { 32 - knownVulnerabilities = [ "CVE-2017-1000420" ]; 33 - homepage = https://www.syncthing.net/; 34 - description = "Open Source Continuous File Synchronization"; 35 - license = stdenv.lib.licenses.mpl20; 36 - maintainers = with stdenv.lib.maintainers; [pshendry]; 37 - platforms = with stdenv.lib.platforms; linux ++ freebsd ++ openbsd ++ netbsd; 38 - }; 39 - }
-4
pkgs/top-level/all-packages.nix
··· 17329 17329 17330 17330 syncthing = callPackage ../applications/networking/syncthing { }; 17331 17331 17332 - syncthing012 = callPackage ../applications/networking/syncthing012 { }; 17333 - 17334 - syncthing013 = callPackage ../applications/networking/syncthing013 { }; 17335 - 17336 17332 syncthing-gtk = python2Packages.callPackage ../applications/networking/syncthing-gtk { }; 17337 17333 17338 17334 syncthing-inotify = callPackage ../applications/networking/syncthing/inotify.nix { };