3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/ocz-ssd-guru/default.nix

54 lines
1.3 KiB
Nix
Raw Normal View History

2019-11-10 16:44:34 +00:00
{ fetchurl, stdenv, xorg, freetype, fontconfig, libGLU, libGL, glibc, makeWrapper }:
2015-03-30 21:30:57 +01:00
let
system = if stdenv.hostPlatform.system == "x86_64-linux" then "linux64" else "linux32";
2015-03-30 21:30:57 +01:00
in
stdenv.mkDerivation rec {
pname = "ocz-ssd-guru";
2015-03-30 21:30:57 +01:00
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 [
xorg.libX11
xorg.libxcb
2015-03-30 21:30:57 +01:00
freetype
fontconfig
xorg.libXext
xorg.libXi
xorg.libXrender
2015-03-30 21:30:57 +01:00
stdenv.cc.cc
glibc
2019-11-10 16:44:34 +00:00
libGLU libGL
2015-03-30 21:30:57 +01:00
];
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 ];
};
}