mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
35 lines
792 B
Nix
35 lines
792 B
Nix
{ stdenv, lib, go, ceph, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ceph-csi";
|
|
version = "3.11.0";
|
|
|
|
nativeBuildInputs = [ go ];
|
|
buildInputs = [ ceph ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ceph";
|
|
repo = "ceph-csi";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-EgHl74kJ6lTS3pqz/Hxh/2tpc1xiDNcJxzERwKops+A=";
|
|
};
|
|
|
|
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";
|
|
mainProgram = "cephcsi";
|
|
license = [ licenses.asl20 ];
|
|
maintainers = with maintainers; [ johanot ];
|
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
|
};
|
|
}
|