tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
turnon: 2.6.3 -> 2.7.4
mksafavi
5 months ago
b2883552
ecb5ae71
+26
-16
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
tu
turnon
package.nix
+26
-16
pkgs/by-name/tu/turnon/package.nix
···
1
{
2
lib,
3
-
fetchFromGitHub,
0
4
rustPlatform,
5
cairo,
6
pango,
···
9
blueprint-compiler,
10
wrapGAppsHook4,
11
gsettings-desktop-schemas,
0
12
}:
13
14
-
rustPlatform.buildRustPackage rec {
0
0
0
15
pname = "turnon";
16
-
version = "2.6.3";
17
18
-
src = fetchFromGitHub {
0
19
owner = "swsnr";
20
repo = "turnon";
21
rev = "v${version}";
22
-
hash = "sha256-fRDyfgS+jLGFJTYIEXJ27cCM9knfbIjlGpYNU4OyoJ0=";
23
};
24
25
-
cargoHash = "sha256-Bg3+PX5/BlqeN3EEFzBX42Dw4BbyKHlN1dnQSHnEz+c=";
26
27
doCheck = true;
28
···
39
pkg-config
40
blueprint-compiler
41
wrapGAppsHook4
0
42
];
43
44
buildInputs = [
···
48
49
strictDeps = true;
50
51
-
postInstall =
52
-
# The build.rs compiles the settings schema and writes the compiled file next to the .xml file.
53
-
# This copies the compiled file to a path that can be detected by gsettings-desktop-schemas
54
-
''
55
-
mkdir -p "$out/share/glib-2.0/schemas"
56
-
cp "schemas/gschemas.compiled" "$out/share/glib-2.0/schemas"
57
-
'';
0
0
0
58
59
meta = {
60
description = "Turn on devices in your local network";
61
-
homepage = "https://github.com/swsnr/turnon";
62
-
license = lib.licenses.mpl20;
63
maintainers = with lib.maintainers; [ mksafavi ];
64
-
mainProgram = "turnon";
65
platforms = lib.platforms.linux;
66
};
67
}
···
1
{
2
lib,
3
+
stdenv,
4
+
fetchFromGitea,
5
rustPlatform,
6
cairo,
7
pango,
···
10
blueprint-compiler,
11
wrapGAppsHook4,
12
gsettings-desktop-schemas,
13
+
just,
14
}:
15
16
+
let
17
+
version = "2.7.4";
18
+
in
19
+
rustPlatform.buildRustPackage {
20
pname = "turnon";
21
+
version = version;
22
23
+
src = fetchFromGitea {
24
+
domain = "codeberg.org";
25
owner = "swsnr";
26
repo = "turnon";
27
rev = "v${version}";
28
+
hash = "sha256-RTLFajUMJHZoXKhy83G3c7a2fZ+P6CZXadFpbcPFLY8=";
29
};
30
31
+
cargoHash = "sha256-8vqsQPbl3c2++8T5bjDjAWzm00qSDogT1YaumOC7qzk=";
32
33
doCheck = true;
34
···
45
pkg-config
46
blueprint-compiler
47
wrapGAppsHook4
48
+
just
49
];
50
51
buildInputs = [
···
55
56
strictDeps = true;
57
58
+
postPatch = ''
59
+
substituteInPlace justfile \
60
+
--replace-fail "version := \`git describe\`" "version := \"${version}\"" \
61
+
--replace-fail "DESTPREFIX := '/app'" "DESTPREFIX := '$out'" \
62
+
--replace-fail "just --list" "just compile" # Replacing the default recipe with the compile command as just-hook-buildPhase runs the default recipe to compile the package.
63
+
'';
64
+
65
+
postBuild = ''
66
+
cargo build --release
67
+
'';
68
69
meta = {
70
description = "Turn on devices in your local network";
71
+
homepage = "https://codeberg.org/swsnr/turnon";
72
+
license = lib.licenses.eupl12;
73
maintainers = with lib.maintainers; [ mksafavi ];
74
+
mainProgram = "de.swsnr.turnon";
75
platforms = lib.platforms.linux;
76
};
77
}