2016-08-13 05:58:05 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoPackage, go-bindata, go-bindata-assetfs }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "drone.io";
|
2018-09-28 19:07:36 +01:00
|
|
|
version = "0.8.6-20180727-${stdenv.lib.strings.substring 0 7 revision}";
|
|
|
|
revision = "c48150767c2700d35dcc29b110a81c8b5969175e";
|
2016-08-13 05:58:05 +01:00
|
|
|
goPackagePath = "github.com/drone/drone";
|
|
|
|
|
2016-11-04 04:48:54 +00:00
|
|
|
# These dependencies pulled (in `drone` buildprocess) via Makefile,
|
|
|
|
# so I extracted them here, all revisions pinned by same date, as ${version}
|
2018-05-29 20:21:19 +01:00
|
|
|
goDeps= ./deps.nix;
|
2016-08-13 05:58:05 +01:00
|
|
|
|
2018-05-29 20:21:19 +01:00
|
|
|
nativeBuildInputs = [ go-bindata go-bindata-assetfs ];
|
2016-08-13 05:58:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "drone";
|
|
|
|
repo = "drone";
|
|
|
|
rev = revision;
|
2018-09-28 19:07:36 +01:00
|
|
|
sha256 = "0miq2012nivvr1ysi3aa2xrr5ak3mf0l3drybyc83iycy0kp4bda";
|
2016-08-13 05:58:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-05-29 20:21:19 +01:00
|
|
|
maintainers = with maintainers; [ avnik vdemeester ];
|
2016-08-13 05:58:05 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "Continuous Integration platform built on container technology";
|
|
|
|
};
|
|
|
|
}
|