tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
tuna: 0.15 -> 0.19
Robert Schütz
2 years ago
b60dd6b4
026dd53d
+25
-20
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
tuna
default.nix
top-level
all-packages.nix
+24
-19
pkgs/os-specific/linux/tuna/default.nix
···
1
1
-
{ lib
2
2
-
, buildPythonApplication
3
3
-
, fetchzip
4
4
-
, pygobject3
5
5
-
, glib
6
6
-
, gobject-introspection
7
7
-
, gtk3
8
8
-
, python-linux-procfs
9
9
-
, ethtool
10
10
-
, wrapGAppsHook3
1
1
+
{
2
2
+
lib,
3
3
+
python3,
4
4
+
fetchurl,
5
5
+
glib,
6
6
+
gobject-introspection,
7
7
+
gtk3,
8
8
+
wrapGAppsHook3,
11
9
}:
12
10
13
13
-
buildPythonApplication rec {
11
11
+
python3.pkgs.buildPythonApplication rec {
14
12
pname = "tuna";
15
15
-
version = "0.15";
13
13
+
version = "0.19";
14
14
+
pyproject = true;
16
15
17
17
-
src = fetchzip {
16
16
+
src = fetchurl {
18
17
url = "https://git.kernel.org/pub/scm/utils/tuna/tuna.git/snapshot/tuna-v${version}.tar.gz";
19
19
-
sha256 = "MwyLBwKz5ur1sBXHiCLq/Nq2u5aaiC+KzXqvGBmQii8=";
18
18
+
hash = "sha256-t10CxtwnTOg1uQgm6mTrNUIU8LkXJ3BkTycjWteQvuU=";
20
19
};
21
20
22
21
postPatch = ''
23
22
mv tuna-cmd.py tuna/cmd.py
24
23
25
24
substituteInPlace setup.py \
26
26
-
--replace 'packages = ["tuna", "tuna/gui"],' \
27
27
-
'packages = ["tuna", "tuna/gui"], entry_points={"console_scripts":["tuna=tuna.cmd:main"]},'
25
25
+
--replace-fail 'packages = ["tuna", "tuna/gui"],' \
26
26
+
'packages = ["tuna", "tuna/gui"], entry_points={"console_scripts":["tuna=tuna.cmd:main"]},'
28
27
29
28
substituteInPlace tuna/tuna_gui.py \
30
30
-
--replace "self.binpath + 'pkexec'" "'/run/wrappers/bin/pkexec'" \
31
31
-
--replace 'tuna_glade_dirs = [".", "tuna", "/usr/share/tuna"]' "tuna_glade_dirs = [ \"$out/share/tuna\" ]"
29
29
+
--replace-fail "self.binpath + 'pkexec'" "'/run/wrappers/bin/pkexec'" \
30
30
+
--replace-fail 'tuna_glade_dirs = [".", "tuna", "/usr/share/tuna"]' "tuna_glade_dirs = [ \"$out/share/tuna\" ]"
32
31
'';
32
32
+
33
33
+
build-system = with python3.pkgs; [ setuptools ];
33
34
34
35
nativeBuildInputs = [
35
36
glib.dev
···
38
39
wrapGAppsHook3
39
40
];
40
41
41
41
-
propagatedBuildInputs = [ pygobject3 python-linux-procfs ethtool ];
42
42
+
dependencies = with python3.pkgs; [
43
43
+
pygobject3
44
44
+
python-linux-procfs
45
45
+
ethtool
46
46
+
];
42
47
43
48
postInstall = ''
44
49
mkdir -p $out/share/tuna
+1
-1
pkgs/top-level/all-packages.nix
···
34471
34471
34472
34472
tudu = callPackage ../applications/office/tudu { };
34473
34473
34474
34474
-
tuna = python3Packages.callPackage ../os-specific/linux/tuna { };
34474
34474
+
tuna = callPackage ../os-specific/linux/tuna { };
34475
34475
34476
34476
tunefish = callPackage ../applications/audio/tunefish {
34477
34477
stdenv = clangStdenv; # https://github.com/jpcima/tunefish/issues/4