Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "lsscsi"; 5 version = "0.32"; 6 7 src = fetchurl { 8 url = "http://sg.danny.cz/scsi/lsscsi-${version}.tgz"; 9 sha256 = "sha256-CoAOnpTcoqtwLWXXJ3eujK4Hjj100Ly+1kughJ6AKaE="; 10 }; 11 12 preConfigure = '' 13 substituteInPlace Makefile.in --replace /usr "$out" 14 ''; 15 16 meta = with lib; { 17 license = licenses.gpl2; 18 platforms = platforms.linux; 19 }; 20}