uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
66
pkgs/applications/networking/cluster/minishift/default.nix
Normal file
66
pkgs/applications/networking/cluster/minishift/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib, buildGoPackage, fetchFromGitHub, go-bindata, pkg-config, makeWrapper
|
||||
, glib, gtk3, libappindicator-gtk3, gpgme, openshift, ostree, libselinux, btrfs-progs
|
||||
, lvm2, docker-machine-kvm
|
||||
}:
|
||||
|
||||
let
|
||||
version = "1.34.3";
|
||||
|
||||
# Update these on version bumps according to Makefile
|
||||
centOsIsoVersion = "v1.17.0";
|
||||
openshiftVersion = "v3.11.0";
|
||||
|
||||
in buildGoPackage rec {
|
||||
pname = "minishift";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "minishift";
|
||||
repo = "minishift";
|
||||
rev = "v${version}";
|
||||
sha256 = "0yhln3kyc0098hbnjyxhbd915g6j7s692c0z8yrhh9gdpc5cr2aa";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config go-bindata makeWrapper ];
|
||||
buildInputs = [ glib gtk3 libappindicator-gtk3 gpgme ostree libselinux btrfs-progs lvm2 ];
|
||||
|
||||
goPackagePath = "github.com/minishift/minishift";
|
||||
subPackages = [ "cmd/minishift" ];
|
||||
|
||||
postPatch = ''
|
||||
# minishift downloads openshift if not found therefore set the cache to /nix/store/...
|
||||
substituteInPlace pkg/minishift/cache/oc_caching.go \
|
||||
--replace 'filepath.Join(oc.MinishiftCacheDir, OC_CACHE_DIR, oc.OpenShiftVersion, runtime.GOOS)' '"${openshift}/bin"' \
|
||||
--replace '"runtime"' ""
|
||||
'';
|
||||
|
||||
ldflags = [
|
||||
"-X ${goPackagePath}/pkg/version.minishiftVersion=${version}"
|
||||
"-X ${goPackagePath}/pkg/version.centOsIsoVersion=${centOsIsoVersion}"
|
||||
"-X ${goPackagePath}/pkg/version.openshiftVersion=${openshiftVersion}"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
(cd go/src/github.com/minishift/minishift
|
||||
mkdir -p out/bindata
|
||||
go-bindata -prefix addons -o out/bindata/addon_assets.go -pkg bindata addons/...)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out/bin/minishift" \
|
||||
--prefix PATH ':' '${lib.makeBinPath [ docker-machine-kvm openshift ]}'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Run OpenShift locally";
|
||||
longDescription = ''
|
||||
Minishift is a tool that helps you run OpenShift locally by running
|
||||
a single-node OpenShift cluster inside a VM. You can try out OpenShift
|
||||
or develop with it, day-to-day, on your local host.
|
||||
'';
|
||||
homepage = "https://github.com/minishift/minishift";
|
||||
maintainers = with maintainers; [ fpletz vdemeester ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue