From a297ef596627310eeb4e4db44e165dd7c202d8b9 Mon Sep 17 00:00:00 2001 From: Marco Maggesi Date: Tue, 22 Feb 2011 20:57:17 +0000 Subject: [PATCH] Add lsscsi svn path=/nixpkgs/trunk/; revision=26063 --- pkgs/os-specific/linux/lsscsi/default.nix | 16 ++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 pkgs/os-specific/linux/lsscsi/default.nix diff --git a/pkgs/os-specific/linux/lsscsi/default.nix b/pkgs/os-specific/linux/lsscsi/default.nix new file mode 100644 index 000000000000..886f6c799a43 --- /dev/null +++ b/pkgs/os-specific/linux/lsscsi/default.nix @@ -0,0 +1,16 @@ +{ stdenv, fetchurl }: + +assert stdenv.isLinux; + +stdenv.mkDerivation { + name = "lsscsi-0.24"; + + src = fetchurl { + url = "http://sg.danny.cz/scsi/lsscsi-0.24.tgz"; + sha256 = "0c718w80vi9a0w48q8xmlnbyqzxfd8lax5dcbqg8gvg4l2zaba2c"; + }; + + preConfigure = '' + substituteInPlace Makefile.in --replace /usr "$out" + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0292338d0763..ac6fcab167e7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4704,6 +4704,8 @@ let then utillinuxng else null; + lsscsi = callPackage ../os-specific/linux/lsscsi { }; + e3cfsprogs = callPackage ../os-specific/linux/e3cfsprogs { }; eject = callPackage ../os-specific/linux/eject { };