summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorValérian Galliat <val@codejam.info>2016-07-28 11:22:53 -0400
committerschneefux <schneefux+commit@schneefux.xyz>2016-12-10 14:48:03 +0100
commit5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e (patch)
tree33a9b5b3d32be8d0686127cb72c3d7565d527b4c /pkgs/applications/version-management
parent688e6e099ab5a94ea0594d05ef574f098275f806 (diff)
downloadnixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.tar
nixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.tar.gz
nixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.tar.bz2
nixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.tar.lz
nixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.tar.xz
nixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.tar.zst
nixpkgs-5a7d267ec3211b21c8f56cdd9dd8e031bcc2745e.zip
Gogs: use new go2nix and `goPackages` format
Introduced with #16017.
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/gogs/default.nix434
-rw-r--r--pkgs/applications/version-management/gogs/default.nix.patch22
-rw-r--r--pkgs/applications/version-management/gogs/deps.json425
-rw-r--r--pkgs/applications/version-management/gogs/gogs-definition.nix74
-rw-r--r--pkgs/applications/version-management/gogs/sqlite.awk21
-rwxr-xr-xpkgs/applications/version-management/gogs/update-gogs-definition9
6 files changed, 433 insertions, 552 deletions
diff --git a/pkgs/applications/version-management/gogs/default.nix b/pkgs/applications/version-management/gogs/default.nix
index a8ba4928872..1e237b70615 100644
--- a/pkgs/applications/version-management/gogs/default.nix
+++ b/pkgs/applications/version-management/gogs/default.nix
@@ -1,15 +1,12 @@
-# This file was generated by go2nix.
-{ stdenv, lib, makeWrapper, go, goPackages, git, fetchgit, sqliteSupport ? true }:
-
-with goPackages;
+{ stdenv, buildGoPackage, fetchgit, makeWrapper, git, sqliteSupport ? true  }:
 
 buildGoPackage rec {
   name = "gogs-${version}";
-  version = "20160227-${stdenv.lib.strings.substring 0 7 rev}";
-  rev = "d320915ad2a7b4bbab075b98890aa50f91f0ced5";
+  version = "20160728-${stdenv.lib.strings.substring 0 7 rev}";
+  rev = "ad7ea88923e371df7558835d8f3e0236cfdf69ba";
 
-  buildInputs = [ makeWrapper go ];
-  buildFlags = lib.optional (sqliteSupport) "-tags sqlite";
+  buildInputs = [ makeWrapper ];
+  buildFlags = stdenv.lib.optional (sqliteSupport) "-tags sqlite";
   goPackagePath = "github.com/gogits/gogs";
 
   postInstall = ''
@@ -22,424 +19,9 @@ buildGoPackage rec {
 
   src = fetchgit {
     inherit rev;
-    url = "https://github.com/gogits/gogs.git";
-    sha256 = "0wpyn3linpb9jgqrpzbmmgn2s54rdhnqv286x2vj4lrngjc8xbc7";
+    url = "https://github.com/gogits/gogs";
+    sha256 = "0vgkhpwvj79shpi3bq2sr1nza53fidmnbmh814ic09jnb2dilnrm";
   };
 
-  extraSrcs = [
-    {
-      goPackagePath = "github.com/Unknwon/cae";
-
-      src = fetchgit {
-        url = "https://github.com/Unknwon/cae";
-        rev = "7f5e046bc8a6c3cde743c233b96ee4fd84ee6ecd";
-          sha256 = "1sp9mlm42r50ydsk1dyyhshrryy364pjdj8m275b5av8yg374dq2";
-      };
-    }
-    {
-      goPackagePath = "github.com/Unknwon/com";
-
-      src = fetchgit {
-        url = "https://github.com/Unknwon/com";
-        rev = "28b053d5a2923b87ce8c5a08f3af779894a72758";
-          sha256 = "1nq7pdjczgllm0yb2dlgr6zclwpwabl9a86dyw4bz0zd6qginfxy";
-      };
-    }
-    {
-      goPackagePath = "github.com/Unknwon/i18n";
-
-      src = fetchgit {
-        url = "https://github.com/Unknwon/i18n";
-        rev = "3b48b6662051bed72d36efa3c1e897bdf96b2e37";
-          sha256 = "1h18024641z473gx1ghwxd741c5sbhww4zsc0f3wwig6dghsfy0f";
-      };
-    }
-    {
-      goPackagePath = "github.com/Unknwon/paginater";
-
-      src = fetchgit {
-        url = "https://github.com/Unknwon/paginater";
-        rev = "7748a72e01415173a27d79866b984328e7b0c12b";
-          sha256 = "11lf3grqdr7ynhm39xp7siihf7b7v5p7r1vf9f3lbnyy99092v9p";
-      };
-    }
-    {
-      goPackagePath = "github.com/bradfitz/gomemcache";
-
-      src = fetchgit {
-        url = "https://github.com/bradfitz/gomemcache";
-        rev = "fb1f79c6b65acda83063cbc69f6bba1522558bfc";
-          sha256 = "0s4azbz3q681psi31r6z1697rkhqpaap8lif9yg85v6fc0zm7wvc";
-      };
-    }
-    {
-      goPackagePath = "github.com/codegangsta/cli";
-
-      src = fetchgit {
-        url = "https://github.com/codegangsta/cli";
-        rev = "a2943485b110df8842045ae0600047f88a3a56a1";
-          sha256 = "1hdbr6riv7j4all09w2a5zdc27fq11rf005v7v3wdccq07zmsmaa";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/binding";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/binding";
-        rev = "a68f34212fe257219981e43adfe4c96ab48f42cd";
-          sha256 = "00ny0khwbcv9n7kbnc2mfl07sp6dyp4xc5y4wiqvsgj66gb90yf7";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/cache";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/cache";
-        rev = "56173531277692bc2925924d51fda1cd0a6b8178";
-          sha256 = "05b2bbndkdr5z63f2xz4z1k8ls3zz7xi17vkhqnz0g0dvsx34l38";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/captcha";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/captcha";
-        rev = "8aa5919789ab301e865595eb4b1114d6b9847deb";
-          sha256 = "0wdihxbl7yw4wg2x0wb09kv9swfpr5j06wsj4hxn3xcbpqi9viwm";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/csrf";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/csrf";
-        rev = "715bca06a911dbd91c4f1d9ec65fd329664b5211";
-          sha256 = "1jljqv96ib5iih0jx7smsykbsfc0wy33salf19djad5xb64clpmi";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/gzip";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/gzip";
-        rev = "cad1c6580a07c56f5f6bc52d66002a05985c5854";
-          sha256 = "12mq3dd1vd0jbi80fxab4ysmipbz9zhbm9nw6y6a6bw3byc8w4jf";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/i18n";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/i18n";
-        rev = "d2d3329f13b52314f3292c4cecb601fad13f02c8";
-          sha256 = "18f59fkw3wy5b80x8jcqnywqscs7qvj7cnfi85d23m9kq353pifs";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/inject";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/inject";
-        rev = "c5ab7bf3a307593cd44cb272d1a5beea473dd072";
-          sha256 = "0v7plrgwx9qn9iknm7p5fr5c53zzx5aaqvdcgyh6hnfwjjf5zny4";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/session";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/session";
-        rev = "66031fcb37a0fff002a1f028eb0b3a815c78306b";
-          sha256 = "0h6l1af93cipcmy3p6asw79cbmhkl34rmf0nyzywpm2pmn7pqznc";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-macaron/toolbox";
-
-      src = fetchgit {
-        url = "https://github.com/go-macaron/toolbox";
-        rev = "82b511550b0aefc36b3a28062ad3a52e812bee38";
-          sha256 = "1s2psf7sw3asag3hnw0n3ah6ywwghf2p4yn4m0pf5d9883sf4pgm";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-sql-driver/mysql";
-
-      src = fetchgit {
-        url = "https://github.com/go-sql-driver/mysql";
-        rev = "71f003c6e927d2550713e7637affb769977ece78";
-          sha256 = "197x3hlmgaw736hyvyxla1m2c6bcwif68zjvk3qd7mxxbfi5ic6s";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-xorm/core";
-
-      src = fetchgit {
-        url = "https://github.com/go-xorm/core";
-        rev = "9ddf4ee12e7a370dacf0092d9896979ae6e3fb16";
-          sha256 = "1qn7kgfyc7yv78ggwc8w2f75jklbm68a4wirglysf8kf70l3m773";
-      };
-    }
-    {
-      goPackagePath = "github.com/go-xorm/xorm";
-
-      src = fetchgit {
-        url = "https://github.com/go-xorm/xorm";
-        rev = "67d038a63f23ce98f7fbc5ef3a87075d82d50f93";
-          sha256 = "0qk1h3ihdl0mqmi28gljxx46lnngjh4l80zrxvlsqlwrlj95yw7k";
-      };
-    }
-    {
-      goPackagePath = "github.com/gogits/chardet";
-
-      src = fetchgit {
-        url = "https://github.com/gogits/chardet";
-        rev = "2404f777256163ea3eadb273dada5dcb037993c0";
-          sha256 = "1dki2pqhnzcmzlqrq4d4jwknnjxm82xqnmizjjdblb6h98ans1cd";
-      };
-    }
-    {
-      goPackagePath = "github.com/gogits/cron";
-
-      src = fetchgit {
-        url = "https://github.com/gogits/cron";
-        rev = "3abc0f88f2062336bcc41b43a4febbd847a390ce";
-          sha256 = "0y3z048wym595w8rgngz2mpd1bg8gc282li1l0bmg5q8a4hyb0x5";
-      };
-    }
-    {
-      goPackagePath = "github.com/gogits/git-module";
-
-      src = fetchgit {
-        url = "https://github.com/gogits/git-module";
-        rev = "a1c50966a193fa4cfc9a9142c59189348c97387c";
-          sha256 = "1xaffyzgbif84n73s79g8yynpp89d61lajn0y0vf4pnkh1j500v0";
-      };
-    }
-    {
-      goPackagePath = "github.com/gogits/go-gogs-client";
-
-      src = fetchgit {
-        url = "https://github.com/gogits/go-gogs-client";
-        rev = "d584b1e0fb4d8ad0e8cf2fae2368838f2526b408";
-          sha256 = "1g9kb0bj50dnwh261r3sq00jy1d8pyywh3ybav83lnmn95sbzsns";
-      };
-    }
-    {
-      goPackagePath = "github.com/gogits/gogs";
-
-      src = fetchgit {
-        url = "https://github.com/gogits/gogs.git";
-        rev = "d320915ad2a7b4bbab075b98890aa50f91f0ced5";
-          sha256 = "0wpyn3linpb9jgqrpzbmmgn2s54rdhnqv286x2vj4lrngjc8xbc7";
-      };
-    }
-    {
-      goPackagePath = "github.com/issue9/identicon";
-
-      src = fetchgit {
-        url = "https://github.com/issue9/identicon";
-        rev = "f8c0d2ce04db79c663b1da33d3a9f62be753ee88";
-          sha256 = "0zilbp4dqmbslhs9p10gb04xggf3z0xlr0vw2g7c5gyc2w02q27f";
-      };
-    }
-    {
-      goPackagePath = "github.com/klauspost/compress";
-
-      src = fetchgit {
-        url = "https://github.com/klauspost/compress";
-        rev = "f9625351863b5e94c1da72862187b8fe9a91af90";
-          sha256 = "0yjl58zk2dlb1jvgc3frnhgbsrc680ajkpb8bbyd9m5d21hmkq56";
-      };
-    }
-    {
-      goPackagePath = "github.com/klauspost/cpuid";
-
-      src = fetchgit {
-        url = "https://github.com/klauspost/cpuid";
-        rev = "2c698c6aef5976c7860074cc7040e8af7866aa21";
-          sha256 = "1gyxikc62ivs0yf6d4kpbj2038pwyziz47v1vn4qxg4phr2rd5h7";
-      };
-    }
-    {
-      goPackagePath = "github.com/klauspost/crc32";
-
-      src = fetchgit {
-        url = "https://github.com/klauspost/crc32";
-        rev = "19b0b332c9e4516a6370a0456e6182c3b5036720";
-          sha256 = "0r11v6vaqg49sa8zvxh2y6md4pp0sfh4ia43gsw1arwwlsah39vz";
-      };
-    }
-    {
-      goPackagePath = "github.com/lib/pq";
-
-      src = fetchgit {
-        url = "https://github.com/lib/pq";
-        rev = "69552e54d2a9d4c6a2438926a774930f7bc398ec";
-          sha256 = "1y9923j9yl1qqizsy80mzaylg4ysyqp6gyrf85x91x17p2adq2ll";
-      };
-    }
-    ] ++ (lib.optional (sqliteSupport) {
-      goPackagePath = "github.com/mattn/go-sqlite3";
-
-      src = fetchgit {
-        url = "https://github.com/mattn/go-sqlite3";
-        rev = "09d5c451710ef887470709463f4f04ff83e1e039";
-          sha256 = "16c8vl9j693gb0q2cqv5ijnxdvfgnpm1sgaicbpd25lbqningcfc";
-      };
-    }) ++ [
-    {
-      goPackagePath = "github.com/mcuadros/go-version";
-
-      src = fetchgit {
-        url = "https://github.com/mcuadros/go-version";
-        rev = "d52711f8d6bea8dc01efafdb68ad95a4e2606630";
-          sha256 = "1b4h6557y5aar74bi1xqmpm4zr1kla95x9q49k48w99n3sis3h7m";
-      };
-    }
-    {
-      goPackagePath = "github.com/microcosm-cc/bluemonday";
-
-      src = fetchgit {
-        url = "https://github.com/microcosm-cc/bluemonday";
-        rev = "4ac6f27528d0a3f2a59e0b0a6f6b3ff0bb89fe20";
-          sha256 = "0xacnj369mhpff6zykm9rykh7r2i4c6mjfmg5cd1ra4irpskx5sb";
-      };
-    }
-    {
-      goPackagePath = "github.com/nfnt/resize";
-
-      src = fetchgit {
-        url = "https://github.com/nfnt/resize";
-        rev = "4d93a29130b1b6aba503e2aa8b50f516213ea80e";
-          sha256 = "1s6z241726nd1xd5rwlnj6l4p0na4v20ibfg5sh9cp7pl98mn5gv";
-      };
-    }
-    {
-      goPackagePath = "github.com/russross/blackfriday";
-
-      src = fetchgit {
-        url = "https://github.com/russross/blackfriday";
-        rev = "006144af03eeeff1037240a71865a9fd61f1c25f";
-          sha256 = "1z9zdkxgyk10xngyk55f0433ix6q9kwfrcyljj6xaqjb19wldz7j";
-      };
-    }
-    {
-      goPackagePath = "github.com/satori/go.uuid";
-
-      src = fetchgit {
-        url = "https://github.com/satori/go.uuid";
-        rev = "e673fdd4dea8a7334adbbe7f57b7e4b00bdc5502";
-          sha256 = "0nm2dqj87vvv1bmcfl3x9k6kal655yfamxnb7xkfzqkvldigy0qf";
-      };
-    }
-    {
-      goPackagePath = "github.com/sergi/go-diff";
-
-      src = fetchgit {
-        url = "https://github.com/sergi/go-diff";
-        rev = "ec7fdbb58eb3e300c8595ad5ac74a5aa50019cc7";
-          sha256 = "049xnl182h5q8fs5z70wb9yh9jvi98h4v3z13xps2rys9xl9rh5x";
-      };
-    }
-    {
-      goPackagePath = "github.com/shurcooL/sanitized_anchor_name";
-
-      src = fetchgit {
-        url = "https://github.com/shurcooL/sanitized_anchor_name";
-        rev = "10ef21a441db47d8b13ebcc5fd2310f636973c77";
-          sha256 = "1cnbzcf47cn796rcjpph1s64qrabhkv5dn9sbynsy7m9zdwr5f01";
-      };
-    }
-    {
-      goPackagePath = "golang.org/x/crypto";
-
-      src = fetchgit {
-        url = "https://go.googlesource.com/crypto";
-        rev = "5dc8cb4b8a8eb076cbb5a06bc3b8682c15bdbbd3";
-          sha256 = "0b2s9gidpy2r85z0n9w2knh3dkfhjg89z3lyi620vcf1li6qhdl3";
-      };
-    }
-    {
-      goPackagePath = "golang.org/x/net";
-
-      src = fetchgit {
-        url = "https://go.googlesource.com/net";
-        rev = "6acef71eb69611914f7a30939ea9f6e194c78172";
-          sha256 = "0vy75lfl2viiikp3k9626g3ncxq6vpnwmhkgyaxdnq14hb4xgw2k";
-      };
-    }
-    {
-      goPackagePath = "golang.org/x/text";
-
-      src = fetchgit {
-        url = "https://go.googlesource.com/text";
-        rev = "a71fd10341b064c10f4a81ceac72bcf70f26ea34";
-          sha256 = "1wm63llpn1ix85f47ac3c9jx92i9cfbdw2ih7p8gdq964k7px53c";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/asn1-ber.v1";
-
-      src = fetchgit {
-        url = "https://gopkg.in/asn1-ber.v1";
-        rev = "4e86f4367175e39f69d9358a5f17b4dda270378d";
-          sha256 = "13p8s74kzklb5lklfpxwxb78rknihawv1civ4s9bfqx565010fwk";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/bufio.v1";
-
-      src = fetchgit {
-        url = "https://gopkg.in/bufio.v1";
-        rev = "567b2bfa514e796916c4747494d6ff5132a1dfce";
-          sha256 = "1z5pj778hdianlfj14p0d67g69v4gc2kvn6jg27z5jf75a88l19b";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/gomail.v2";
-
-      src = fetchgit {
-        url = "https://gopkg.in/gomail.v2";
-        rev = "fbb71ddc63acd07dd0ed49ababdf02c551e2539a";
-          sha256 = "1q8xa51bxcmbwsww8s2x42152w1xn553xmmpyq5jz66a2vf1wlvl";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/ini.v1";
-
-      src = fetchgit {
-        url = "https://gopkg.in/ini.v1";
-        rev = "776aa739ce9373377cd16f526cdf06cb4c89b40f";
-          sha256 = "04pmr4mdvpzawpxinwqpas4ksjzq54q5a0qapw0kkb651p06vqhn";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/ldap.v2";
-
-      src = fetchgit {
-        url = "https://gopkg.in/ldap.v2";
-        rev = "07a7330929b9ee80495c88a4439657d89c7dbd87";
-          sha256 = "0qsy0ldvkd0rhh6wfdrm51145ps9sd8nc8qx3fw1f90irb3a71sh";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/macaron.v1";
-
-      src = fetchgit {
-        url = "https://gopkg.in/macaron.v1";
-        rev = "b9eee382bef2f2f678fadbcf368fc1e52306bed1";
-          sha256 = "1rbj1l8742vgar4zchf4r203qvids9vv0iz9a20l5585xz21cmsj";
-      };
-    }
-    {
-      goPackagePath = "gopkg.in/redis.v2";
-
-      src = fetchgit {
-        url = "https://gopkg.in/redis.v2";
-        rev = "e6179049628164864e6e84e973cfb56335748dea";
-          sha256 = "02hifpgak39y39lbn7v2ybbpk3rmb8nvmb3h3490frr8s4pfkb8h";
-      };
-    }
-  ];
+  goDeps = ./deps.json;
 }
diff --git a/pkgs/applications/version-management/gogs/default.nix.patch b/pkgs/applications/version-management/gogs/default.nix.patch
deleted file mode 100644
index f9b6b3aafbc..00000000000
--- a/pkgs/applications/version-management/gogs/default.nix.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-2,3c2
-< #with import <nixpkgs> {};
-< { stdenv, lib, go, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
----
-> { stdenv, lib, makeWrapper, go, goPackages, git, fetchgit, sqliteSupport ? true }:
-12,15c11,12
-<   buildInputs = [ go ];
-<   
-<   buildFlags = "--tags sqlite";
-<   
----
->   buildInputs = [ makeWrapper go ];
->   buildFlags = lib.optional (sqliteSupport) "-tags sqlite";
-17a15,22
->   postInstall = ''
->     wrapProgram $bin/bin/gogs \
->       --prefix PATH : ${git}/bin \
->       --run 'export GOGS_WORK_DIR=''${GOGS_WORK_DIR:-$PWD}' \
->       --run 'cd "$GOGS_WORK_DIR"' \
->       --run "ln -fs $out/share/go/src/${goPackagePath}/{public,templates} ."
->   '';
-> 
diff --git a/pkgs/applications/version-management/gogs/deps.json b/pkgs/applications/version-management/gogs/deps.json
new file mode 100644
index 00000000000..f93c53e8b34
--- /dev/null
+++ b/pkgs/applications/version-management/gogs/deps.json
@@ -0,0 +1,425 @@
+[
+  {
+    "goPackagePath": "github.com/Unknwon/cae",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/Unknwon/cae",
+      "rev": "c6aac99ea2cae2ebaf23f26f76b04fe3fcfc9f8c",
+      "sha256": "0j6l1fcs6gp4qw6b9w3pg9fgah18lh1hanfz5y64r6ks244v3l7s"
+    }
+  },
+  {
+    "goPackagePath": "github.com/Unknwon/com",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/Unknwon/com",
+      "rev": "28b053d5a2923b87ce8c5a08f3af779894a72758",
+      "sha256": "09i9slj4zbsqmwkkx9bqi7cgpv6hqby6r98l6qx1wag89qijybz2"
+    }
+  },
+  {
+    "goPackagePath": "github.com/Unknwon/i18n",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/Unknwon/i18n",
+      "rev": "39d6f2727e0698b1021ceb6a77c1801aa92e7d5d",
+      "sha256": "1f4s9srdaqw2yqgc3d76vww3glbwka2f5q4zrwn8bb66kcazbfb7"
+    }
+  },
+  {
+    "goPackagePath": "github.com/Unknwon/paginater",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/Unknwon/paginater",
+      "rev": "7748a72e01415173a27d79866b984328e7b0c12b",
+      "sha256": "0ighsa75ixgx6c4hc397c06lapf0pz50cj3cgkdvssp9an38kw2c"
+    }
+  },
+  {
+    "goPackagePath": "github.com/bradfitz/gomemcache",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/bradfitz/gomemcache",
+      "rev": "fb1f79c6b65acda83063cbc69f6bba1522558bfc",
+      "sha256": "0mq5rn07bbpy2yla7hassrmj966p6r7ffbf9w41l31yy0fc07i68"
+    }
+  },
+  {
+    "goPackagePath": "github.com/codegangsta/cli",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/codegangsta/cli",
+      "rev": "d9021faab69f92295ef7061bd39e4a76dcbdef32",
+      "sha256": "0rwxc84rq6w2adymvffydyvd2va4zxqb6kv9dk7j5iikcs021yn0"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/binding",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/binding",
+      "rev": "9440f336b443056c90d7d448a0a55ad8c7599880",
+      "sha256": "0g3ya3h8vjaykgp1npdxbizcf8kzv4m47vymcsq06vpihrfhbvg7"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/cache",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/cache",
+      "rev": "56173531277692bc2925924d51fda1cd0a6b8178",
+      "sha256": "1116a22wm43q2l54nnycgli90kix787j20mpgya9qb6xnglcck59"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/captcha",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/captcha",
+      "rev": "8aa5919789ab301e865595eb4b1114d6b9847deb",
+      "sha256": "0wdihxbl7yw4wg2x0wb09kv9swfpr5j06wsj4hxn3xcbpqi9viwm"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/csrf",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/csrf",
+      "rev": "6a9a7df172cc1fcd81e4585f44b09200b6087cc0",
+      "sha256": "173da2hl9fcfgkn0nv1ws3pr0gyyp88amhj2bfk4414k5a3r0nsa"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/gzip",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/gzip",
+      "rev": "cad1c6580a07c56f5f6bc52d66002a05985c5854",
+      "sha256": "12mq3dd1vd0jbi80fxab4ysmipbz9zhbm9nw6y6a6bw3byc8w4jf"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/i18n",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/i18n",
+      "rev": "ef57533c3b0fc2d8581deda14937e52f11a203ab",
+      "sha256": "1nkrcnpjl3x6fhjss2vp29mnvam20vpvxvxpfg1zspi1rjmpyhqy"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/inject",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/inject",
+      "rev": "d8a0b8677191f4380287cfebd08e462217bac7ad",
+      "sha256": "0p47pz699xhmi8yxhahvrpai9r49rqap5ckwmz1dlkrnh3zwhrhh"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/session",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/session",
+      "rev": "66031fcb37a0fff002a1f028eb0b3a815c78306b",
+      "sha256": "1prrfv8xdlyxrdbagbqzjkx69x74hjzif5ki4lzl2y6fk3nb0cd5"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-macaron/toolbox",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-macaron/toolbox",
+      "rev": "99a42f20e9e88daec5c0d7beb4e7eac134680ab0",
+      "sha256": "0r6ksiqzrii7b9vv8daz68044pyifsxmpz48m6h8m6l3h9ygz8cx"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-sql-driver/mysql",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-sql-driver/mysql",
+      "rev": "3654d25ec346ee8ce71a68431025458d52a38ac0",
+      "sha256": "0yr44mbx8632ynhmy8hg5ybwsqsc7byy3n7aqawq7jgih83ivdvq"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-xorm/core",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-xorm/core",
+      "rev": "bc1b7f81f0e369289078424064634a5ee7d21051",
+      "sha256": "01y3bk0yxw0chbi834ykda0bfxr4xaarkbb237k4x5sj3wcv30v1"
+    }
+  },
+  {
+    "goPackagePath": "github.com/go-xorm/xorm",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/go-xorm/xorm",
+      "rev": "dddc985b860d64f7b6370afd65a8316425e13181",
+      "sha256": "0wmcvrw50d0hk35wrxjky8hmhmqpjf49zq9vfj36ai7qrn7vhvlr"
+    }
+  },
+  {
+    "goPackagePath": "github.com/gogits/chardet",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/gogits/chardet",
+      "rev": "2404f777256163ea3eadb273dada5dcb037993c0",
+      "sha256": "1dki2pqhnzcmzlqrq4d4jwknnjxm82xqnmizjjdblb6h98ans1cd"
+    }
+  },
+  {
+    "goPackagePath": "github.com/gogits/cron",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/gogits/cron",
+      "rev": "96040e4fab17baa0391ce571694e4ccb5fce5dac",
+      "sha256": "1a1f38mzjhdz7n5fclxq2ninqngcqjqx1jy1p4533an3jyjhyh10"
+    }
+  },
+  {
+    "goPackagePath": "github.com/gogits/git-module",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/gogits/git-module",
+      "rev": "53bcb7352ff838610c537c9b589ca79bca92c661",
+      "sha256": "1xk63sccq0gapgrz5a0y2fi4vifqalgrypcv1yhiq53ha3r4fkya"
+    }
+  },
+  {
+    "goPackagePath": "github.com/gogits/go-gogs-client",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/gogits/go-gogs-client",
+      "rev": "442b4e5ddc8029932c91872f8322fb7a2c2de858",
+      "sha256": "0nllqias2kv2fs2dlp2vxxi9nkw3mgm84j6s3n9ccixk7bkxc6a6"
+    }
+  },
+  {
+    "goPackagePath": "github.com/gogits/gogs",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/gogits/gogs",
+      "rev": "ad7ea88923e371df7558835d8f3e0236cfdf69ba",
+      "sha256": "0vgkhpwvj79shpi3bq2sr1nza53fidmnbmh814ic09jnb2dilnrm"
+    }
+  },
+  {
+    "goPackagePath": "github.com/issue9/identicon",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/issue9/identicon",
+      "rev": "d36b54562f4cf70c83653e13dc95c220c79ef521",
+      "sha256": "0y82b3gq8rpqglvf3lsqhgp5djfdammwd1w24k3i97iqls0rch7l"
+    }
+  },
+  {
+    "goPackagePath": "github.com/jaytaylor/html2text",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/jaytaylor/html2text",
+      "rev": "52d9b785554a1918cb09909b89a1509a98b853fd",
+      "sha256": "1hhvabh01ghbpxml245w1786vcxhaaqvcrjssfw0aph1idc9rwix"
+    }
+  },
+  {
+    "goPackagePath": "github.com/klauspost/compress",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/klauspost/compress",
+      "rev": "14eb9c4951195779ecfbec34431a976de7335b0a",
+      "sha256": "0lzkifj6jb365wvk340zywpiah7g16zkd5f7pcbi0gjym0a9ljvc"
+    }
+  },
+  {
+    "goPackagePath": "github.com/klauspost/cpuid",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/klauspost/cpuid",
+      "rev": "09cded8978dc9e80714c4d85b0322337b0a1e5e0",
+      "sha256": "05l8pfch0gvxh0khapwxhsk4xajn40vbjr360n49vh2z5531v2xq"
+    }
+  },
+  {
+    "goPackagePath": "github.com/klauspost/crc32",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/klauspost/crc32",
+      "rev": "19b0b332c9e4516a6370a0456e6182c3b5036720",
+      "sha256": "0fcnsf1m0bzplgp28dz8skza6l7rc65s180x85rzbdl9l3zzi43r"
+    }
+  },
+  {
+    "goPackagePath": "github.com/lib/pq",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/lib/pq",
+      "rev": "4dd446efc17690bc53e154025146f73203b18309",
+      "sha256": "14idja467kcz2zlbqv07q3wp939khq620163fr5hhl7x362l5di6"
+    }
+  },
+  {
+    "goPackagePath": "github.com/mattn/go-sqlite3",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/mattn/go-sqlite3",
+      "rev": "e118d4451349065b8e7ce0f0af32e033995363f8",
+      "sha256": "1bf5mazb6h7mpvf0g8bxbpzb6kzsbm1qx1scs57x52zsb1la317k"
+    }
+  },
+  {
+    "goPackagePath": "github.com/mcuadros/go-version",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/mcuadros/go-version",
+      "rev": "d52711f8d6bea8dc01efafdb68ad95a4e2606630",
+      "sha256": "08ps27vvn77jhrnks8p8mx5cwgb1ikhaddcnrpgpz7aq905a5kzn"
+    }
+  },
+  {
+    "goPackagePath": "github.com/microcosm-cc/bluemonday",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/microcosm-cc/bluemonday",
+      "rev": "9dc199233bf72cc1aad9b61f73daf2f0075b9ee4",
+      "sha256": "067v28gj25niabi29h958af494b6kwfs60mdsvwa4bl99613i8ja"
+    }
+  },
+  {
+    "goPackagePath": "github.com/nfnt/resize",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/nfnt/resize",
+      "rev": "891127d8d1b52734debe1b3c3d7e747502b6c366",
+      "sha256": "08lg2v4s1iyzqja7xb69d57gpz1y43yqfwv7i4fa7a06m595r9iw"
+    }
+  },
+  {
+    "goPackagePath": "github.com/russross/blackfriday",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/russross/blackfriday",
+      "rev": "93622da34e54fb6529bfb7c57e710f37a8d9cbd8",
+      "sha256": "19y4cx4afm3fjj7w83g0wklbzqdjm7m1j5nq64l4yq8bi50y2iv2"
+    }
+  },
+  {
+    "goPackagePath": "github.com/satori/go.uuid",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/satori/go.uuid",
+      "rev": "0aa62d5ddceb50dbcb909d790b5345affd3669b6",
+      "sha256": "1vfzfcspanxcbpdpv49580rh6kamzcs3lm70xnx724mkwi41zi8w"
+    }
+  },
+  {
+    "goPackagePath": "github.com/sergi/go-diff",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/sergi/go-diff",
+      "rev": "ec7fdbb58eb3e300c8595ad5ac74a5aa50019cc7",
+      "sha256": "1lpxhwqbypssj2vhlkj11fircllvxx4n985w6f76id5jany05h2w"
+    }
+  },
+  {
+    "goPackagePath": "github.com/shurcooL/sanitized_anchor_name",
+    "fetch": {
+      "type": "git",
+      "url": "https://github.com/shurcooL/sanitized_anchor_name",
+      "rev": "10ef21a441db47d8b13ebcc5fd2310f636973c77",
+      "sha256": "1cnbzcf47cn796rcjpph1s64qrabhkv5dn9sbynsy7m9zdwr5f01"
+    }
+  },
+  {
+    "goPackagePath": "golang.org/x/crypto",
+    "fetch": {
+      "type": "git",
+      "url": "https://go.googlesource.com/crypto",
+      "rev": "bc89c496413265e715159bdc8478ee9a92fdc265",
+      "sha256": "0a4s0hxq3gq7ylg6cq4s8m8gx9bjsqsj49p9n7k9pij5daydabcf"
+    }
+  },
+  {
+    "goPackagePath": "golang.org/x/net",
+    "fetch": {
+      "type": "git",
+      "url": "https://go.googlesource.com/net",
+      "rev": "6a513affb38dc9788b449d59ffed099b8de18fa0",
+      "sha256": "1g07c05s3ccq0086f0f200k9cfjjzxd4r9nrdilkmy44lbhhrval"
+    }
+  },
+  {
+    "goPackagePath": "golang.org/x/text",
+    "fetch": {
+      "type": "git",
+      "url": "https://go.googlesource.com/text",
+      "rev": "2910a502d2bf9e43193af9d68ca516529614eed3",
+      "sha256": "1h2bxzsnqksnvrk2lplpqzzpp9m9zmd6f2aajyahc56bxb1804jq"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/asn1-ber.v1",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/asn1-ber.v1",
+      "rev": "4e86f4367175e39f69d9358a5f17b4dda270378d",
+      "sha256": "13p8s74kzklb5lklfpxwxb78rknihawv1civ4s9bfqx565010fwk"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/bufio.v1",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/bufio.v1",
+      "rev": "567b2bfa514e796916c4747494d6ff5132a1dfce",
+      "sha256": "1z5pj778hdianlfj14p0d67g69v4gc2kvn6jg27z5jf75a88l19b"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/gomail.v2",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/gomail.v2",
+      "rev": "81ebce5c23dfd25c6c67194b37d3dd3f338c98b1",
+      "sha256": "0zdykrv5s19lnq0g49p6njldy4cpk4g161vyjafiw7f84h8r28mc"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/ini.v1",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/ini.v1",
+      "rev": "cf53f9204df4fbdd7ec4164b57fa6184ba168292",
+      "sha256": "045nl3hc4mwngr9j1ahrfv2x6izf8y57ij8k6kdgh9xahyhb6rwb"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/ldap.v2",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/ldap.v2",
+      "rev": "537128fee7cca108d8ce74e4309fdfcdd9c7f496",
+      "sha256": "09zvf3q0p3p4czcisv4x0bn5x0carpw35cisnygkxh6s1sp4im9q"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/macaron.v1",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/macaron.v1",
+      "rev": "2133042f8d1022b8253e4e23f7940467941409ce",
+      "sha256": "1z11hkxcmv40qvhqzqn97kymm294kh219fjybvm7p3hz3xgkgcjq"
+    }
+  },
+  {
+    "goPackagePath": "gopkg.in/redis.v2",
+    "fetch": {
+      "type": "git",
+      "url": "https://gopkg.in/redis.v2",
+      "rev": "e6179049628164864e6e84e973cfb56335748dea",
+      "sha256": "02hifpgak39y39lbn7v2ybbpk3rmb8nvmb3h3490frr8s4pfkb8h"
+    }
+  }
+]
diff --git a/pkgs/applications/version-management/gogs/gogs-definition.nix b/pkgs/applications/version-management/gogs/gogs-definition.nix
deleted file mode 100644
index 62698608197..00000000000
--- a/pkgs/applications/version-management/gogs/gogs-definition.nix
+++ /dev/null
@@ -1,74 +0,0 @@
-with import <nixpkgs> {};
-
-let
-  # My go2nix fork to be able to build in a pure environment,
-  # with build tags support, fixed bugs that affected Gogs
-  # and with latest nix-prefetch-git output style.
-  my-go2nix = lib.overrideDerivation go2nix (oldAttrs: {
-    src = fetchFromGitHub {
-      rev = "336ac3d93272860c9d8f518f43ce6f70c3b11bf4";
-      owner = "valeriangalliat";
-      repo = "go2nix";
-      sha256 = "0m9srjcl9lrphl4gsrscibf2c7yz2kmmja9qylbli4lwjw53g7p7";
-    };
-
-    buildInputs = [ makeWrapper ] ++ oldAttrs.buildInputs;
-
-    preFixup = "";
-
-    postInstall = ''
-      wrapProgram $bin/bin/go2nix \
-        --prefix PATH : ${nix-prefetch-git}/bin  \
-        --prefix PATH : ${git}/bin  \
-    '';
-
-    disallowedReferences = [];
-  });
-
-  # Fetch a Go tree from a Go package repository and build tags.
-  # All dependencies are fetched according to `go get` rules, so the
-  # output of this derivation is not deterministic (but that's the
-  # point since we use it to automatically update the package and its
-  # dependencies).
-  fetchgo =
-    { goPackagePath, url, rev ? "HEAD", tags ? [] }:
-    stdenv.mkDerivation {
-      name = builtins.replaceStrings ["/"] ["_"] goPackagePath;
-      buildInputs = [ go git ];
-      phases = [ "installPhase" ];
-
-      installPhase = ''
-        export GOPATH=$out
-        repo=$out/src/${goPackagePath}
-        mkdir -p $repo
-        git clone ${url} $repo
-        cd $repo
-        git reset --hard ${rev}
-        go get -v -d -tags ${builtins.concatStringsSep "," tags}
-      '';
-    };
-
-  goPackagePath = "github.com/gogits/gogs";
-  url = "https://${goPackagePath}.git";
-  rev = "d320915ad2a7b4bbab075b98890aa50f91f0ced5";
-  tags = [ "sqlite" ];
-
-in
-
-stdenv.mkDerivation {
-  name = "gogs-definition";
-
-  src = fetchgo {
-    inherit goPackagePath url rev tags;
-   };
-
-  buildInputs = [ nix my-go2nix.bin ];
-
-  installPhase = ''
-    export GOPATH=$PWD
-    cd src/${goPackagePath}
-    go2nix save --tags ${builtins.concatStringsSep "," tags}
-    patch default.nix < ${./default.nix.patch}
-    cat default.nix | awk -f ${./sqlite.awk} | sed '/# can be improved/d' > $out
-  '';
-}
diff --git a/pkgs/applications/version-management/gogs/sqlite.awk b/pkgs/applications/version-management/gogs/sqlite.awk
deleted file mode 100644
index 40c73261cef..00000000000
--- a/pkgs/applications/version-management/gogs/sqlite.awk
+++ /dev/null
@@ -1,21 +0,0 @@
-/goPackagePath/ && /sqlite/ {
-  sqlite=1
-  prev="    ] ++ (lib.optional (sqliteSupport) {"
-}
-
-sqlite && /}$/ {
-  sqlite=0
-  $0="    }) ++ ["
-}
-
-NR > 1 {
-  print prev
-}
-
-{
-  prev=$0
-}
-
-END {
-  print prev
-}
diff --git a/pkgs/applications/version-management/gogs/update-gogs-definition b/pkgs/applications/version-management/gogs/update-gogs-definition
deleted file mode 100755
index b467af463f1..00000000000
--- a/pkgs/applications/version-management/gogs/update-gogs-definition
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh -e
-#
-# Regenerates `default.nix` using `gogs-definition.nix`.
-#
-# The latter should be updated to a new revision of Gogs in order
-# to update.
-#
-
-cat "$(nix-build --no-out-link gogs-definition.nix)" > default.nix