Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1013 B
Nix
51 lines
1013 B
Nix
{
|
|
ceph,
|
|
fetchFromGitHub,
|
|
go,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ceph-csi";
|
|
version = "3.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ceph";
|
|
repo = "ceph-csi";
|
|
rev = "v${version}";
|
|
hash = "sha256-F9sVFW0KY7PCjeK1RPdvLyO2RMlyROLfpQ49QThrWLY=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
export GOCACHE=$(pwd)/.cache
|
|
'';
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ go ];
|
|
|
|
buildInputs = [ ceph ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp ./_output/* $out/bin
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Container Storage Interface (CSI) driver for Ceph RBD and CephFS";
|
|
downloadPage = "https://github.com/ceph/ceph-csi";
|
|
changelog = "https://github.com/ceph/ceph-csi/releases/tag/v${version}";
|
|
homepage = "https://ceph.com/";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "cephcsi";
|
|
maintainers = with lib.maintainers; [ johanot ];
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
};
|
|
}
|