tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
gsmartcontrol: 1.1.4 -> 2.0.2
emaryn
9 months ago
8251ed86
50dd5a53
+17
-18
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
gs
gsmartcontrol
package.nix
+17
-18
pkgs/by-name/gs/gsmartcontrol/package.nix
···
1
1
{
2
2
-
fetchurl,
3
2
lib,
4
3
stdenv,
4
4
+
fetchFromGitHub,
5
5
smartmontools,
6
6
-
autoreconfHook,
7
7
-
gettext,
6
6
+
cmake,
8
7
gtkmm3,
9
8
pkg-config,
10
9
wrapGAppsHook3,
···
12
11
adwaita-icon-theme,
13
12
}:
14
13
15
15
-
stdenv.mkDerivation rec {
14
14
+
stdenv.mkDerivation (finalAttrs: {
16
15
pname = "gsmartcontrol";
17
17
-
version = "1.1.4";
16
16
+
version = "2.0.2";
18
17
19
19
-
src = fetchurl {
20
20
-
url = "https://github.com/ashaduri/gsmartcontrol/releases/download/v${version}/gsmartcontrol-${version}.tar.bz2";
21
21
-
sha256 = "sha256-/ECfK4qEzEC7ED1sgkAbnUwBgtWjsiPJOVnHrWYZGEc=";
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "ashaduri";
20
20
+
repo = "gsmartcontrol";
21
21
+
tag = "v${finalAttrs.version}";
22
22
+
hash = "sha256-eLzwFZ1PYqijFTxos9Osf7A2v4C8toM+TGV4/bU82NE=";
22
23
};
23
24
24
24
-
patches = [
25
25
-
./fix-paths.patch
26
26
-
];
27
27
-
28
25
postPatch = ''
29
29
-
substituteInPlace data/org.gsmartcontrol.policy --replace "/usr/sbin" $out/bin
26
26
+
substituteInPlace data/gsmartcontrol.in.desktop \
27
27
+
--replace-fail "@CMAKE_INSTALL_FULL_BINDIR@/" ""
30
28
'';
31
29
32
30
nativeBuildInputs = [
33
33
-
autoreconfHook
34
34
-
gettext
31
31
+
cmake
35
32
pkg-config
36
33
wrapGAppsHook3
37
34
];
35
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
63
-
homepage = "https://gsmartcontrol.shaduri.dev/";
61
61
+
homepage = "https://gsmartcontrol.shaduri.dev";
62
62
+
mainProgram = "gsmartcontrol";
64
63
license = lib.licenses.gpl2Plus;
65
64
maintainers = with lib.maintainers; [ qknight ];
66
66
-
platforms = with lib.platforms; linux;
65
65
+
platforms = lib.platforms.linux;
67
66
};
68
68
-
}
67
67
+
})