841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
33 lines
763 B
Nix
33 lines
763 B
Nix
{ stdenv, lib, go, ceph, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ceph-csi";
|
|
version = "3.3.1";
|
|
|
|
nativeBuildInputs = [ go ];
|
|
buildInputs = [ ceph ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ceph";
|
|
repo = "ceph-csi";
|
|
rev = "v${version}";
|
|
sha256 = "16nh4bh8a9s2zbxnnhq1ldww4dzp2fmf5idgq99vkyw2kfp017lf";
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|