9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
33 lines
762 B
Nix
33 lines
762 B
Nix
{ stdenv, lib, go, ceph, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ceph-csi";
|
|
version = "3.9.0";
|
|
|
|
nativeBuildInputs = [ go ];
|
|
buildInputs = [ ceph ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ceph";
|
|
repo = "ceph-csi";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dKn79EIveepeMzFPweQ3BE3YMCg7mj8EycMbBH8J8PQ=";
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|