lol

gsmartcontrol: 1.1.4 -> 2.0.2

emaryn 8251ed86 50dd5a53

+17 -18
+17 -18
pkgs/by-name/gs/gsmartcontrol/package.nix
··· 1 1 { 2 - fetchurl, 3 2 lib, 4 3 stdenv, 4 + fetchFromGitHub, 5 5 smartmontools, 6 - autoreconfHook, 7 - gettext, 6 + cmake, 8 7 gtkmm3, 9 8 pkg-config, 10 9 wrapGAppsHook3, ··· 12 11 adwaita-icon-theme, 13 12 }: 14 13 15 - stdenv.mkDerivation rec { 14 + stdenv.mkDerivation (finalAttrs: { 16 15 pname = "gsmartcontrol"; 17 - version = "1.1.4"; 16 + version = "2.0.2"; 18 17 19 - src = fetchurl { 20 - url = "https://github.com/ashaduri/gsmartcontrol/releases/download/v${version}/gsmartcontrol-${version}.tar.bz2"; 21 - sha256 = "sha256-/ECfK4qEzEC7ED1sgkAbnUwBgtWjsiPJOVnHrWYZGEc="; 18 + src = fetchFromGitHub { 19 + owner = "ashaduri"; 20 + repo = "gsmartcontrol"; 21 + tag = "v${finalAttrs.version}"; 22 + hash = "sha256-eLzwFZ1PYqijFTxos9Osf7A2v4C8toM+TGV4/bU82NE="; 22 23 }; 23 24 24 - patches = [ 25 - ./fix-paths.patch 26 - ]; 27 - 28 25 postPatch = '' 29 - substituteInPlace data/org.gsmartcontrol.policy --replace "/usr/sbin" $out/bin 26 + substituteInPlace data/gsmartcontrol.in.desktop \ 27 + --replace-fail "@CMAKE_INSTALL_FULL_BINDIR@/" "" 30 28 ''; 31 29 32 30 nativeBuildInputs = [ 33 - autoreconfHook 34 - gettext 31 + cmake 35 32 pkg-config 36 33 wrapGAppsHook3 37 34 ]; 35 + 38 36 buildInputs = [ 39 37 gtkmm3 40 38 pcre-cpp ··· 60 58 It allows you to inspect the drive's SMART data to determine its health, 61 59 as well as run various tests on it. 62 60 ''; 63 - homepage = "https://gsmartcontrol.shaduri.dev/"; 61 + homepage = "https://gsmartcontrol.shaduri.dev"; 62 + mainProgram = "gsmartcontrol"; 64 63 license = lib.licenses.gpl2Plus; 65 64 maintainers = with lib.maintainers; [ qknight ]; 66 - platforms = with lib.platforms; linux; 65 + platforms = lib.platforms.linux; 67 66 }; 68 - } 67 + })