nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 55 lines 976 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3, 6 which, 7 ldc, 8 zlib, 9 lz4, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "sambamba"; 14 version = "1.0.1"; 15 16 src = fetchFromGitHub { 17 owner = "biod"; 18 repo = "sambamba"; 19 rev = "v${version}"; 20 hash = "sha256-3O9bHGpMuCgdR2Wm7Dv1VUjMT1QTn8K1hdwgjvwhFDw="; 21 fetchSubmodules = true; 22 }; 23 24 nativeBuildInputs = [ 25 which 26 python3 27 ldc 28 ]; 29 buildInputs = [ 30 zlib 31 lz4 32 ]; 33 34 buildFlags = [ 35 "CC=${stdenv.cc.targetPrefix}cc" 36 ]; 37 38 # Upstream's install target is broken; copy manually 39 installPhase = '' 40 runHook preInstall 41 42 install -Dm755 bin/sambamba-${version} $out/bin/sambamba 43 44 runHook postInstall 45 ''; 46 47 meta = with lib; { 48 description = "SAM/BAM processing tool"; 49 mainProgram = "sambamba"; 50 homepage = "https://lomereiter.github.io/sambamba/"; 51 maintainers = with maintainers; [ jbedo ]; 52 license = with licenses; gpl2; 53 platforms = platforms.x86_64; 54 }; 55}