2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv, lib, go, ceph, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ceph-csi";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "3.7.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ go ];
|
|
|
|
buildInputs = [ ceph ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ceph";
|
|
|
|
repo = "ceph-csi";
|
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-VlOKN2PjHM0MdDz6t/AAjcFx4F15+7p3+25tLkRQH1Q=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export GOCACHE=$(pwd)/.cache
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ./_output/* $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://ceph.com/";
|
|
|
|
description = "Container Storage Interface (CSI) driver for Ceph RBD and CephFS";
|
|
|
|
license = [ licenses.asl20 ];
|
|
|
|
maintainers = with maintainers; [ johanot ];
|
|
|
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
};
|
|
|
|
}
|