depot/pkgs/by-name/ce/ceph-csi/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

50 lines
1,013 B
Nix

{
ceph,
fetchFromGitHub,
go,
lib,
stdenv,
}:
stdenv.mkDerivation rec {
pname = "ceph-csi";
version = "3.12.2";
src = fetchFromGitHub {
owner = "ceph";
repo = "ceph-csi";
rev = "v${version}";
hash = "sha256-AyGdXPszvYO/ocfcWKeRaUXgwB0IHFVG9uc+c2iaEvA=";
};
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"
];
};
}