merging ssd-guru: fix conflicts

This commit is contained in:
Arseniy Seroka 2015-03-30 23:30:57 +03:00
parent df50903da8
commit cb9f2f8503
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ fetchurl, stdenv, xlibs, freetype, fontconfig, mesa, glibc, makeWrapper }:
let
system = if stdenv.system == "x86_64-linux" then "linux64" else "linux32";
in
stdenv.mkDerivation rec {
name = "ocz-ssd-guru-${version}";
version = "1.0.1170";
src = fetchurl {
url = "http://ocz.com/consumer/download/ssd-guru/SSDGuru_${version}.tar.gz";
sha256 = "0ri7qmpc1xpy12lpzl6k298c641wcibcwrzz8jn75wdg4rr176r5";
};
buildInputs = [ makeWrapper ];
libPath = stdenv.lib.makeLibraryPath [
xlibs.libX11
xlibs.libxcb
freetype
fontconfig
xlibs.libXext
xlibs.libXi
xlibs.libXrender
stdenv.cc.cc
glibc
mesa
];
installPhase = ''
mkdir -p $out/bin
cp ${system}/SSDGuru $out/bin/
rm -rf linux{32,64}
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath $libPath:$out \
$out/bin/SSDGuru
wrapProgram $out/bin/SSDGuru --prefix LD_LIBRARY_PATH : $libPath
'';
dontStrip = true;
dontPatchELF = true;
meta = {
homepage = http://ocz.com/ssd-guru;
description = "SSD Management Tool for OCZ disks";
license = stdenv.lib.licenses.unfree;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ jagajaga ];
};
}

View File

@ -2483,6 +2483,8 @@ let
sip = pythonPackages.sip_4_16;
};
ocz-ssd-guru = callPackage ../tools/misc/ocz-ssd-guru { };
qastools = callPackage ../tools/audio/qastools {
qt = qt4;
};