tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
pkgs/ksmcon: bump version
hustlerone
1 year ago
71aecd74
5cf107a7
+38
-30
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
km
kmscon
package.nix
sandbox.patch
+13
-30
pkgs/by-name/km/kmscon/package.nix
···
5
5
fetchpatch,
6
6
meson,
7
7
libtsm,
8
8
-
systemd,
8
8
+
systemdLibs,
9
9
libxkbcommon,
10
10
libdrm,
11
11
libGLU,
···
17
17
libxslt,
18
18
libgbm,
19
19
ninja,
20
20
+
check,
20
21
buildPackages,
21
22
}:
22
22
-
23
23
stdenv.mkDerivation rec {
24
24
pname = "kmscon";
25
25
-
version = "9.0.0";
25
25
+
version = "9.0.0-unstable-2025-01-09";
26
26
27
27
src = fetchFromGitHub {
28
28
owner = "Aetf";
29
29
repo = "kmscon";
30
30
-
rev = "v${version}";
31
31
-
sha256 = "sha256-8owyyzCrZVbWXcCR+RA+m0MOrdzW+efI+rIMWEVEZ1o=";
30
30
+
rev = "a81941f4464e6f9cee75bfb8a1db88c253ede33d";
31
31
+
sha256 = "sha256-l7Prt7CsYi4VCnp9xktvqqNT+4djSdO2GvP1JdxhNSI=";
32
32
};
33
33
34
34
strictDeps = true;
···
45
45
libxkbcommon
46
46
pango
47
47
pixman
48
48
-
systemd
48
48
+
systemdLibs
49
49
libgbm
50
50
+
check
50
51
];
51
52
52
53
nativeBuildInputs = [
···
57
58
libxslt # xsltproc
58
59
];
59
60
60
60
-
# Remove the patches attrlist once the package is bumped to something newer than both of these patches
61
61
-
patches = [
62
62
-
(fetchpatch {
63
63
-
name = "0001-tests-fix-warnings.patch";
64
64
-
url = "https://github.com/Aetf/kmscon/commit/b65f4269b03de580923ab390bde795e7956b633f.patch";
65
65
-
sha256 = "sha256-ngflPwmNMM/2JzhV+hHiH3efQyoSULfqEywzWox9iAQ=";
66
66
-
})
67
67
-
(fetchpatch {
68
68
-
# https://github.com/Aetf/kmscon/pull/96
69
69
-
name = "0002-runtime-fix-logout.patch";
70
70
-
url = "https://github.com/Aetf/kmscon/commit/a81941f4464e6f9cee75bfb8a1db88c253ede33d.patch";
71
71
-
sha256 = "sha256-geWu8MVsHKs8VHauh5Tf9eWJrdA5+0bPFAQ32T6Xsqg=";
72
72
-
})
73
73
-
];
61
61
+
env.NIX_CFLAGS_COMPILE =
62
62
+
lib.optionalString stdenv.cc.isGNU "-O "
63
63
+
+ "-Wno-error=maybe-uninitialized -Wno-error=unused-result -Wno-error=implicit-function-declaration";
74
64
75
75
-
# _FORTIFY_SOURCE requires compiling with optimization (-O)
76
76
-
env.NIX_CFLAGS_COMPILE =
77
77
-
lib.optionalString stdenv.cc.isGNU "-O" + " -Wno-error=maybe-uninitialized"; # https://github.com/Aetf/kmscon/issues/49
65
65
+
enableParallelBuilding = true;
78
66
79
79
-
configureFlags = [
80
80
-
"--enable-multi-seat"
81
81
-
"--disable-debug"
82
82
-
"--enable-optimizations"
83
83
-
"--with-renderers=bbulk,gltex,pixman"
67
67
+
patches = [
68
68
+
./sandbox.patch # Generate system units where they should be (nix store) instead of /etc/systemd/system
84
69
];
85
85
-
86
86
-
enableParallelBuilding = true;
87
70
88
71
meta = with lib; {
89
72
description = "KMS/DRM based System Console";
+25
pkgs/by-name/km/kmscon/sandbox.patch
···
1
1
+
From d51e35a7ab936983b2a544992adae66093c6028f Mon Sep 17 00:00:00 2001
2
2
+
From: hustlerone <nine-ball@tutanota.com>
3
3
+
Date: Thu, 20 Feb 2025 11:05:56 +0100
4
4
+
Subject: [PATCH] Patch for nixpkgs
5
5
+
6
6
+
---
7
7
+
meson.build | 2 +-
8
8
+
1 file changed, 1 insertion(+), 1 deletion(-)
9
9
+
10
10
+
diff --git a/meson.build b/meson.build
11
11
+
index 964b44b..4415084 100644
12
12
+
--- a/meson.build
13
13
+
+++ b/meson.build
14
14
+
@@ -39,7 +39,7 @@ mandir = get_option('mandir')
15
15
+
moduledir = get_option('libdir') / meson.project_name()
16
16
+
17
17
+
systemd_deps = dependency('systemd', required: false)
18
18
+
-systemdsystemunitdir = systemd_deps.get_variable('systemdsystemunitdir', default_value: get_option('libdir') / 'systemd/system')
19
19
+
+systemdsystemunitdir = get_option('libdir') / 'systemd'
20
20
+
21
21
+
#
22
22
+
# Required dependencies
23
23
+
--
24
24
+
2.47.2
25
25
+