File tree Expand file tree Collapse file tree 1 file changed +27
-18
lines changed
pkgs/by-name/la/lan-mouse Expand file tree Collapse file tree 1 file changed +27
-18
lines changed Original file line number Diff line number Diff line change 1- { stdenv
2- , rustPlatform
3- , fetchFromGitHub
4- , lib
5- , darwin
6- , glib
7- , gtk4
8- , libadwaita
9- , libX11
10- , libXtst
11- , pkg-config
12- , wrapGAppsHook4
1+ {
2+ stdenv ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ lib ,
6+ glib ,
7+ gtk4 ,
8+ libadwaita ,
9+ libX11 ,
10+ libXtst ,
11+ pkg-config ,
12+ wrapGAppsHook4 ,
1313} :
1414
1515rustPlatform . buildRustPackage rec {
1616 pname = "lan-mouse" ;
17- version = "0.9.1 " ;
17+ version = "0.10.0 " ;
1818
1919 src = fetchFromGitHub {
2020 owner = "feschber" ;
2121 repo = "lan-mouse" ;
2222 rev = "v${ version } " ;
23- 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" ;
2435 } ;
2536
2637 nativeBuildInputs = [
27- glib # needed in both {b,nativeB}uildInptus
2838 pkg-config
2939 wrapGAppsHook4
3040 ] ;
@@ -35,10 +45,9 @@ rustPlatform.buildRustPackage rec {
3545 libadwaita
3646 libX11
3747 libXtst
38- ]
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