File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 lib ,
33 fetchFromGitHub ,
4+ libxcb ,
45 nix-update-script ,
56 rustPlatform ,
67 stdenv ,
7- libxcb ,
88 versionCheckHook ,
99 withClipboard ? true ,
1010} :
1111
1212rustPlatform . buildRustPackage ( finalAttrs : {
1313 __structuredAttrs = true ;
14+
1415 pname = "motus" ;
1516 version = "0.4.0" ;
1617
@@ -23,21 +24,20 @@ rustPlatform.buildRustPackage (finalAttrs: {
2324
2425 cargoHash = "sha256-6MKEHnB2MJVB4cNvz3JYlhuzxhzsA+Pq5OkpLNoAEyU=" ;
2526
26- buildAndTestSubdir = "crates/motus-cli" ;
27-
2827 # The CLI crate version was not bumped to match the v0.4.0 release tag:
2928 # https://github.com/oleiade/motus/issues/58
3029 postPatch = ''
3130 substituteInPlace crates/motus-cli/src/main.rs \
3231 --replace-fail '#[command(version = "0.3.1")]' '#[command(version = "${ finalAttrs . version } ")]'
3332 '' ;
3433
35- buildNoDefaultFeatures = ! withClipboard ;
36-
3734 buildInputs = lib . optionals ( withClipboard && stdenv . hostPlatform . isLinux ) [ libxcb ] ;
3835
39- nativeInstallCheckInputs = [ versionCheckHook ] ;
36+ buildAndTestSubdir = "crates/motus-cli" ;
37+ buildNoDefaultFeatures = ! withClipboard ;
38+
4039 doInstallCheck = true ;
40+ nativeInstallCheckInputs = [ versionCheckHook ] ;
4141
4242 passthru . updateScript = nix-update-script { } ;
4343
You can’t perform that action at this time.
0 commit comments