2021-01-15 10:19:50 +01:00
|
|
|
{ fetchurl, lib, stdenv, xorg, freetype, fontconfig, libGLU, libGL, glibc, makeWrapper }:
|
2015-03-30 22:30:57 +02:00
|
|
|
|
|
|
|
let
|
2018-08-20 21:11:29 +02:00
|
|
|
system = if stdenv.hostPlatform.system == "x86_64-linux" then "linux64" else "linux32";
|
2015-03-30 22:30:57 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ocz-ssd-guru";
|
2015-03-30 22:30:57 +02:00
|
|
|
version = "1.0.1170";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ocz.com/consumer/download/ssd-guru/SSDGuru_${version}.tar.gz";
|
|
|
|
sha256 = "0ri7qmpc1xpy12lpzl6k298c641wcibcwrzz8jn75wdg4rr176r5";
|
|
|
|
};
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2015-03-30 22:30:57 +02:00
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
libPath = lib.makeLibraryPath [
|
2015-09-15 11:26:18 +02:00
|
|
|
xorg.libX11
|
|
|
|
xorg.libxcb
|
2015-03-30 22:30:57 +02:00
|
|
|
freetype
|
|
|
|
fontconfig
|
2015-09-15 11:26:18 +02:00
|
|
|
xorg.libXext
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXrender
|
2015-03-30 22:30:57 +02:00
|
|
|
stdenv.cc.cc
|
|
|
|
glibc
|
2019-11-10 17:44:34 +01:00
|
|
|
libGLU libGL
|
2015-03-30 22:30:57 +02: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 = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://ocz.com/ssd-guru";
|
2015-03-30 22:30:57 +02:00
|
|
|
description = "SSD Management Tool for OCZ disks";
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.unfree;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ jagajaga ];
|
2015-03-30 22:30:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|