Skip to content

Commit d3ac9f0

Browse files
committed
motus: sort attributes in a more logical order
1 parent cae9175 commit d3ac9f0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pkgs/by-name/mo/motus/package.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
lib,
33
fetchFromGitHub,
4+
libxcb,
45
nix-update-script,
56
rustPlatform,
67
stdenv,
7-
libxcb,
88
versionCheckHook,
99
withClipboard ? true,
1010
}:
1111

1212
rustPlatform.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

0 commit comments

Comments
 (0)