File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
pkgs/by-name/la/lan-mouse Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 33 rustPlatform ,
44 fetchFromGitHub ,
55 lib ,
6- darwin ,
76 glib ,
87 gtk4 ,
98 libadwaita ,
1514
1615rustPlatform . 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" ;
You can’t perform that action at this time.
0 commit comments