summary refs log tree commit diff
path: root/pkgs/os-specific/linux/lsscsi/default.nix
blob: d87820f246649fe8976aec435a904cdb07c266b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "lsscsi";
  version = "0.32";

  src = fetchurl {
    url = "http://sg.danny.cz/scsi/lsscsi-${version}.tgz";
    sha256 = "sha256-CoAOnpTcoqtwLWXXJ3eujK4Hjj100Ly+1kughJ6AKaE=";
  };

  preConfigure = ''
    substituteInPlace Makefile.in --replace /usr "$out"
  '';

  meta = with lib; {
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}