3
0
Fork 0
forked from mirrors/nixpkgs

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

Syncthing remove ancient versions
This commit is contained in:
Andreas Rammhold 2018-02-11 00:47:33 +01:00 committed by GitHub
commit d6d06b6c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 206 deletions

View file

@ -1,35 +0,0 @@
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "syncthing-${version}";
version = "0.12.15";
rev = "v${version}";
goPackagePath = "github.com/syncthing/syncthing";
src = fetchFromGitHub {
inherit rev;
owner = "syncthing";
repo = "syncthing";
sha256 = "0g4sj509h45iq6g7b0pl88rbbn7c7s01774yjc6bl376x1xrl6a1";
};
goDeps = ./deps.nix;
postPatch = ''
# Mostly a cosmetic change
sed -i 's,unknown-dev,${version},g' cmd/syncthing/main.go
'';
preBuild = ''
export buildFlagsArray+=("-tags" "noupgrade release")
'';
meta = {
knownVulnerabilities = [ "CVE-2017-1000420" ];
homepage = https://www.syncthing.net/;
description = "Open Source Continuous File Synchronization";
license = stdenv.lib.licenses.mpl20;
platforms = with stdenv.lib.platforms; linux ++ freebsd ++ openbsd ++ netbsd;
};
}

View file

@ -1,128 +0,0 @@
[
{
goPackagePath = "golang.org/x/crypto";
fetch = {
type = "git";
url = "https://go.googlesource.com/crypto";
rev = "575fdbe86e5dd89229707ebec0575ce7d088a4a6";
sha256 = "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa";
};
}
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "62ac18b461605b4be188bbc7300e9aa2bc836cd4";
sha256 = "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p";
};
}
{
goPackagePath = "github.com/rcrowley/go-metrics";
fetch = {
type = "git";
url = "https://github.com/rcrowley/go-metrics";
rev = "1ce93efbc8f9c568886b2ef85ce305b2217b3de3";
sha256 = "06gg72krlmd0z3zdq6s716blrga95pyj8dc2f2psfbknbkyrkfqa";
};
}
{
goPackagePath = "github.com/kardianos/osext";
fetch = {
type = "git";
url = "https://github.com/kardianos/osext";
rev = "29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc";
sha256 = "1mawalaz84i16njkz6f9fd5jxhcbxkbsjnav3cmqq2dncv2hyv8a";
};
}
{
goPackagePath = "github.com/bkaradzic/go-lz4";
fetch = {
type = "git";
url = "https://github.com/bkaradzic/go-lz4";
rev = "74ddf82598bc4745b965729e9c6a463bedd33049";
sha256 = "1vdid8v0c2v2qhrg9rzn3l7ya1h34jirrxfnir7gv7w6s4ivdvc1";
};
}
{
goPackagePath = "github.com/calmh/luhn";
fetch = {
type = "git";
url = "https://github.com/calmh/luhn";
rev = "0c8388ff95fa92d4094011e5a04fc99dea3d1632";
sha256 = "1hfj1lx7wdpifn16zqrl4xml6cj5gxbn6hfz1f46g2a6bdf0gcvs";
};
}
{
goPackagePath = "golang.org/x/text";
fetch = {
type = "git";
url = "https://go.googlesource.com/text";
rev = "5eb8d4684c4796dd36c74f6452f2c0fa6c79597e";
sha256 = "1cjwm2pv42dbfqc6ylr7jmma902zg4gng5aarqrbjf1k2nf2vs14";
};
}
{
goPackagePath = "github.com/vitrun/qart";
fetch = {
type = "git";
url = "https://github.com/vitrun/qart";
rev = "ccb109cf25f0cd24474da73b9fee4e7a3e8a8ce0";
sha256 = "0bhp768b8ha6f25dmhwn9q8m2lkbn4qnjf8n7pizk25jn5zjdvc8";
};
}
{
goPackagePath = "github.com/calmh/du";
fetch = {
type = "git";
url = "https://github.com/calmh/du";
rev = "3c0690cca16228b97741327b1b6781397afbdb24";
sha256 = "1mv6mkbslfc8giv47kyl97ny0igb3l7jya5hc75sm54xi6g205wa";
};
}
{
goPackagePath = "github.com/calmh/xdr";
fetch = {
type = "git";
url = "https://github.com/calmh/xdr";
rev = "e467b5aeb65ca8516fb3925c84991bf1d7cc935e";
sha256 = "1bi4b2xkjzcr0vq1wxz14i9943k71sj092dam0gdmr9yvdrg0nra";
};
}
{
goPackagePath = "github.com/juju/ratelimit";
fetch = {
type = "git";
url = "https://github.com/juju/ratelimit";
rev = "772f5c38e468398c4511514f4f6aa9a4185bc0a0";
sha256 = "02rs61ay6sq499lxxszjsrxp33m6zklds1xrmnr5fk73vpqfa28p";
};
}
{
goPackagePath = "github.com/thejerf/suture";
fetch = {
type = "git";
url = "https://github.com/thejerf/suture";
rev = "99c1f2d613756768fc4299acd9dc621e11ed3fd7";
sha256 = "094ksr2nlxhvxr58nbnzzk0prjskb21r86jmxqjr3rwg4rkwn6d4";
};
}
{
goPackagePath = "github.com/golang/snappy";
fetch = {
type = "git";
url = "https://github.com/golang/snappy";
rev = "723cc1e459b8eea2dea4583200fd60757d40097a";
sha256 = "0bprq0qb46f5511b5scrdqqzskqqi2z8b4yh3216rv0n1crx536h";
};
}
{
goPackagePath = "github.com/syndtr/goleveldb";
fetch = {
type = "git";
url = "https://github.com/syndtr/goleveldb";
rev = "1a9d62f03ea92815b46fcaab357cfd4df264b1a0";
sha256 = "04ywbif36fiah4fw0x2abr5q3p4fdhi6q57d5icc2mz03q889vhb";
};
}
]

View file

@ -1,39 +0,0 @@
{ stdenv, fetchgit, go }:
stdenv.mkDerivation rec {
version = "0.13.10";
name = "syncthing-${version}";
src = fetchgit {
url = https://github.com/syncthing/syncthing;
rev = "refs/tags/v${version}";
sha256 = "07q3j6mnrza719rnvbkdsmvlkyr2pch5sj2l204m5iy5mxaghpx7";
};
buildInputs = [ go ];
buildPhase = ''
mkdir -p src/github.com/syncthing
ln -s $(pwd) src/github.com/syncthing/syncthing
export GOPATH=$(pwd)
# Syncthing's build.go script expects this working directory
cd src/github.com/syncthing/syncthing
go run build.go -no-upgrade -version v${version} install all
'';
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin
'';
meta = {
knownVulnerabilities = [ "CVE-2017-1000420" ];
homepage = https://www.syncthing.net/;
description = "Open Source Continuous File Synchronization";
license = stdenv.lib.licenses.mpl20;
maintainers = with stdenv.lib.maintainers; [pshendry];
platforms = with stdenv.lib.platforms; linux ++ freebsd ++ openbsd ++ netbsd;
};
}

View file

@ -17329,10 +17329,6 @@ with pkgs;
syncthing = callPackage ../applications/networking/syncthing { };
syncthing012 = callPackage ../applications/networking/syncthing012 { };
syncthing013 = callPackage ../applications/networking/syncthing013 { };
syncthing-gtk = python2Packages.callPackage ../applications/networking/syncthing-gtk { };
syncthing-inotify = callPackage ../applications/networking/syncthing/inotify.nix { };