summary refs log tree commit diff
path: root/pkgs/tools/filesystems
diff options
context:
space:
mode:
authorJohan Thomsen <jth@dbc.dk>2021-06-27 17:16:00 +0200
committerGitHub <noreply@github.com>2021-06-27 17:16:00 +0200
commitdf7bc169742461f7aa7744bebc4881f5f3b76432 (patch)
tree21546ee9a9967cef7e8d81710c422ff3a6b73519 /pkgs/tools/filesystems
parente34f40b92b77ea8346d413e6a40639dde71c200d (diff)
downloadnixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.tar
nixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.tar.gz
nixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.tar.bz2
nixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.tar.lz
nixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.tar.xz
nixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.tar.zst
nixpkgs-df7bc169742461f7aa7744bebc4881f5f3b76432.zip
ceph-csi: init at 3.3.1 (#123472)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r--pkgs/tools/filesystems/ceph-csi/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/ceph-csi/default.nix b/pkgs/tools/filesystems/ceph-csi/default.nix
new file mode 100644
index 00000000000..7f468c80964
--- /dev/null
+++ b/pkgs/tools/filesystems/ceph-csi/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, lib, go, ceph, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "ceph-csi";
+  version = "3.3.1";
+
+  nativeBuildInputs = [ go ];
+  buildInputs = [ ceph ];
+
+  src = fetchFromGitHub {
+    owner = "ceph";
+    repo = "ceph-csi";
+    rev = "v${version}";
+    sha256 = "16nh4bh8a9s2zbxnnhq1ldww4dzp2fmf5idgq99vkyw2kfp017lf";
+  };
+
+  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" ];
+  };
+}