lol
1{ stdenv, fetchgit, go, git, which }:
2
3stdenv.mkDerivation rec {
4 name = "openshift-origin-${version}";
5 version = "1.0.1";
6
7 src = fetchgit {
8 url = https://github.com/openshift/origin.git;
9 rev = "1b601951daa44964c9bc7e4a2264d65489e3a58c";
10 sha256 = "0nwyj3cgajmbd356w0362zxkd3p3pply58an2bmi3d3bswp3k89g";
11 leaveDotGit = true;
12 deepClone = true;
13 };
14
15 buildInputs = [ go git which ];
16
17 buildPhase = "hack/build-go.sh";
18
19 installPhase = ''
20 mkdir -p "$out/bin"
21 cp _output/local/go/bin/* "$out/bin/"
22 '';
23
24 meta = with stdenv.lib; {
25 description = "Build, deploy, and manage your applications with Docker and Kubernetes";
26 license = licenses.asl20;
27 homepage = http://www.openshift.org;
28 maintainers = with maintainers; [offline];
29 platforms = [ "x86_64-linux" ];
30 broken = true;
31 };
32}