nixpkgs-suyu/pkgs/tools/filesystems/ceph-csi/default.nix

34 lines
762 B
Nix
Raw Normal View History

{ stdenv, lib, go, ceph, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "ceph-csi";
2021-07-30 08:29:16 +02:00
version = "3.4.0";
nativeBuildInputs = [ go ];
buildInputs = [ ceph ];
src = fetchFromGitHub {
owner = "ceph";
repo = "ceph-csi";
rev = "v${version}";
2021-07-30 08:29:16 +02:00
sha256 = "sha256-5+eK+iN6ecWtcmNPjiThCj1rwFaHX3rVCW9lmUCWhU0=";
};
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" ];
};
}