Skip to content

Commit 2fe2ad5

Browse files
committed
lan-mouse: 0.9.1 → 0.10.0
Diff: feschber/lan-mouse@v0.9.1...v0.10.0
1 parent 73450eb commit 2fe2ad5

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

pkgs/by-name/la/lan-mouse/package.nix

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
rustPlatform,
44
fetchFromGitHub,
55
lib,
6-
darwin,
76
glib,
87
gtk4,
98
libadwaita,
@@ -15,17 +14,27 @@
1514

1615
rustPlatform.buildRustPackage rec {
1716
pname = "lan-mouse";
18-
version = "0.9.1";
17+
version = "0.10.0";
1918

2019
src = fetchFromGitHub {
2120
owner = "feschber";
2221
repo = "lan-mouse";
2322
rev = "v${version}";
24-
hash = "sha256-BadpYZnZJcifhe916/X+OGvTQ4FQeTLnoy0gP/i5cLA=";
23+
hash = "sha256-ofiNgJbmf35pfRvZB3ZmMkCJuM7yYgNL+Dd5mZZqyNk=";
24+
};
25+
26+
# lan-mouse uses `git` to determine the version at build time and
27+
# has Cargo set the `GIT_DESCRIBE` environment variable. To improve
28+
# build reproducibility, we define the variable based on the package
29+
# version instead.
30+
prePatch = ''
31+
rm build.rs
32+
'';
33+
env = {
34+
GIT_DESCRIBE = "${version}-nixpkgs";
2535
};
2636

2737
nativeBuildInputs = [
28-
glib # needed in both {b,nativeB}uildInptus
2938
pkg-config
3039
wrapGAppsHook4
3140
];
@@ -36,9 +45,9 @@ rustPlatform.buildRustPackage rec {
3645
libadwaita
3746
libX11
3847
libXtst
39-
] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.CoreGraphics;
48+
];
4049

41-
cargoHash = "sha256-pDdpmZPaClU8KjFHO7v3FDQp9D83GQN+SnFg53q2fjs=";
50+
cargoHash = "sha256-RP3Jw0b2h8KJlVdd8X/AkkmGdRlIfG2tkPtUKohDxvA=";
4251

4352
meta = {
4453
description = "Software KVM switch for sharing a mouse and keyboard with multiple hosts through the network";

0 commit comments

Comments
 (0)