Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, python3 5}: 6 7stdenv.mkDerivation rec { 8 pname = "lsirec"; 9 version = "unstable-2019-03-03"; 10 11 src = fetchFromGitHub { 12 owner = "marcan"; 13 repo = "lsirec"; 14 rev = "2dfb6dc92649feb01a3ddcfd117d4a99098084f2"; 15 sha256 = "sha256-8v+KKjAJlJNpUT0poedRTQfPiDiwahrosXD35Bmh3jM="; 16 }; 17 18 buildInputs = [ python3 ]; 19 20 installPhase = '' 21 runHook preInstall 22 23 install -Dm755 'lsirec' "$out/bin/lsirec" 24 install -Dm755 'sbrtool.py' "$out/bin/sbrtool" 25 26 runHook postInstall 27 ''; 28 29 meta = with lib; { 30 description = "LSI SAS2008/SAS2108 low-level recovery tool for Linux"; 31 homepage = "https://github.com/marcan/lsirec"; 32 platforms = platforms.linux; 33 license = licenses.bsd2; 34 maintainers = with maintainers; [ Luflosi ]; 35 # never built on aarch64-linux since first introduction in nixpkgs 36 broken = stdenv.isLinux && stdenv.isAarch64; 37 }; 38}