diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/continuous-integration/drone')
-rw-r--r-- | nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix | 27 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/tools/continuous-integration/drone/deps.nix | 38 |
2 files changed, 65 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix b/nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix new file mode 100644 index 000000000000..81dbc54cece0 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/continuous-integration/drone/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchFromGitHub, buildGoPackage, go-bindata, go-bindata-assetfs }: + +buildGoPackage rec { + name = "drone.io-${version}"; + version = "0.8.6-20180727-${stdenv.lib.strings.substring 0 7 revision}"; + revision = "c48150767c2700d35dcc29b110a81c8b5969175e"; + goPackagePath = "github.com/drone/drone"; + + # These dependencies pulled (in `drone` buildprocess) via Makefile, + # so I extracted them here, all revisions pinned by same date, as ${version} + goDeps= ./deps.nix; + + nativeBuildInputs = [ go-bindata go-bindata-assetfs ]; + + src = fetchFromGitHub { + owner = "drone"; + repo = "drone"; + rev = revision; + sha256 = "0miq2012nivvr1ysi3aa2xrr5ak3mf0l3drybyc83iycy0kp4bda"; + }; + + meta = with stdenv.lib; { + maintainers = with maintainers; [ avnik vdemeester ]; + license = licenses.asl20; + description = "Continuous Integration platform built on container technology"; + }; +} diff --git a/nixpkgs/pkgs/development/tools/continuous-integration/drone/deps.nix b/nixpkgs/pkgs/development/tools/continuous-integration/drone/deps.nix new file mode 100644 index 000000000000..86059fba28d9 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/continuous-integration/drone/deps.nix @@ -0,0 +1,38 @@ +[ + { + goPackagePath = "github.com/drone/drone-ui"; + fetch = { + type = "git"; + url = "https://github.com/drone/drone-ui"; + rev = "5a497bd6cd5c3c17c53b00d40bcda1bf6f68f475"; + sha256 = "1666xlz3dg468izfwprg17sgb3f4ppn5sj5klds3wgdfrjjm4v57"; + }; + } + { + goPackagePath = "github.com/drone/mq"; + fetch = { + type = "git"; + url = "https://github.com/drone/mq"; + rev = "280af2a3b9c7d9ce90d625150dfff972c6c190b8"; + sha256 = "10a24yq3ya8mvs7j6m7lqhyws7jd923rnih75ciq1g327qxf743s"; + }; + } + { + goPackagePath = "golang.org/x/net"; + fetch = { + type = "git"; + url = "https://github.com/golang/net"; + rev = "dfa909b99c79129e1100513e5cd36307665e5723"; + sha256 = "0nsansy1yqy1kzh5wpv3zi85s0chxfq0ha8knhgnfa0wj0k8q0il"; + }; + } + { + goPackagePath = "github.com/golang/protobuf"; + fetch = { + type = "git"; + url = "https://github.com/golang/protobuf"; + rev = "b4deda0973fb4c70b50d226b1af49f3da59f5265"; + sha256 = "0ya4ha7m20bw048m1159ppqzlvda4x0vdprlbk5sdgmy74h3xcdq"; + }; + } +] |