tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
svkbd: format with nixfmt-rfc-style
Robert Schütz
1 year ago
1ad988e4
9e6936a3
+26
-25
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
sv
svkbd
package.nix
+26
-25
pkgs/by-name/sv/svkbd/package.nix
···
1
1
-
{ lib
2
2
-
, stdenv
3
3
-
, fetchurl
4
4
-
, writeText
5
5
-
, pkg-config
6
6
-
, libX11
7
7
-
, libXft
8
8
-
, libXi
9
9
-
, libXinerama
10
10
-
, libXtst
11
11
-
, layout ? "mobile-intl"
12
12
-
, conf ? null
13
13
-
, patches ? [ ]
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchurl,
5
5
+
writeText,
6
6
+
pkg-config,
7
7
+
libX11,
8
8
+
libXft,
9
9
+
libXi,
10
10
+
libXinerama,
11
11
+
libXtst,
12
12
+
layout ? "mobile-intl",
13
13
+
conf ? null,
14
14
+
patches ? [ ],
14
15
}:
15
16
16
17
stdenv.mkDerivation (finalAttrs: {
···
24
25
25
26
inherit patches;
26
27
27
27
-
postPatch = let
28
28
-
configFile = if lib.isDerivation conf || lib.isPath conf then
29
29
-
conf
30
30
-
else
31
31
-
writeText "config.def.h" conf;
32
32
-
in lib.optionalString (conf != null) ''
33
33
-
cp ${configFile} config.def.h
34
34
-
'';
28
28
+
postPatch =
29
29
+
let
30
30
+
configFile =
31
31
+
if lib.isDerivation conf || lib.isPath conf then conf else writeText "config.def.h" conf;
32
32
+
in
33
33
+
lib.optionalString (conf != null) ''
34
34
+
cp ${configFile} config.def.h
35
35
+
'';
35
36
36
37
nativeBuildInputs = [
37
38
pkg-config
···
50
51
"LAYOUT=${layout}"
51
52
];
52
53
53
53
-
meta = with lib; {
54
54
+
meta = {
54
55
description = "Simple virtual keyboard";
55
56
homepage = "https://tools.suckless.org/x/svkbd/";
56
56
-
license = licenses.mit;
57
57
-
platforms = platforms.linux;
58
58
-
maintainers = with maintainers; [ dotlambda ];
57
57
+
license = lib.licenses.mit;
58
58
+
platforms = lib.platforms.linux;
59
59
+
maintainers = with lib.maintainers; [ dotlambda ];
59
60
mainProgram = "svkbd-${layout}";
60
61
};
61
62
})