nixpkgs/pkgs/tools/filesystems/ceph-csi/default.nix
2023-12-25 13:28:20 +00:00

34 lines
763 B
Nix

{ stdenv, lib, go, ceph, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ceph-csi";
version = "3.10.1";
nativeBuildInputs = [ go ];
buildInputs = [ ceph ];
src = fetchFromGitHub {
owner = "ceph";
repo = "ceph-csi";
rev = "v${version}";
sha256 = "sha256-S5jv9l/Oozv0NrEEf+Bik0jnaK4AYIChFm2pU2/DQow=";
};
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" ];
};
}