Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 33 lines 762 B view raw
1{ stdenv, lib, go, ceph, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "ceph-csi"; 5 version = "3.8.0"; 6 7 nativeBuildInputs = [ go ]; 8 buildInputs = [ ceph ]; 9 10 src = fetchFromGitHub { 11 owner = "ceph"; 12 repo = "ceph-csi"; 13 rev = "v${version}"; 14 sha256 = "sha256-WN0oASficXdy0Q1BLm37ndGhjcIk1lm38owdk1K/ryY="; 15 }; 16 17 preConfigure = '' 18 export GOCACHE=$(pwd)/.cache 19 ''; 20 21 installPhase = '' 22 mkdir -p $out/bin 23 cp ./_output/* $out/bin 24 ''; 25 26 meta = with lib; { 27 homepage = "https://ceph.com/"; 28 description = "Container Storage Interface (CSI) driver for Ceph RBD and CephFS"; 29 license = [ licenses.asl20 ]; 30 maintainers = with maintainers; [ johanot ]; 31 platforms = [ "x86_64-linux" "aarch64-linux" ]; 32 }; 33}