From d3ac9f0dc6fc3148e2d162bdcc9f748bd947f6ce Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Mon, 18 May 2026 11:53:25 +0200 Subject: [PATCH] motus: sort attributes in a more logical order --- pkgs/by-name/mo/motus/package.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/mo/motus/package.nix b/pkgs/by-name/mo/motus/package.nix index 62f652e17ce9..e9d99d833707 100644 --- a/pkgs/by-name/mo/motus/package.nix +++ b/pkgs/by-name/mo/motus/package.nix @@ -1,16 +1,17 @@ { lib, fetchFromGitHub, + libxcb, nix-update-script, rustPlatform, stdenv, - libxcb, versionCheckHook, withClipboard ? true, }: rustPlatform.buildRustPackage (finalAttrs: { __structuredAttrs = true; + pname = "motus"; version = "0.4.0"; @@ -23,8 +24,6 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-6MKEHnB2MJVB4cNvz3JYlhuzxhzsA+Pq5OkpLNoAEyU="; - buildAndTestSubdir = "crates/motus-cli"; - # The CLI crate version was not bumped to match the v0.4.0 release tag: # https://github.com/oleiade/motus/issues/58 postPatch = '' @@ -32,12 +31,13 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail '#[command(version = "0.3.1")]' '#[command(version = "${finalAttrs.version}")]' ''; - buildNoDefaultFeatures = !withClipboard; - buildInputs = lib.optionals (withClipboard && stdenv.hostPlatform.isLinux) [ libxcb ]; - nativeInstallCheckInputs = [ versionCheckHook ]; + buildAndTestSubdir = "crates/motus-cli"; + buildNoDefaultFeatures = !withClipboard; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; passthru.updateScript = nix-update-script { };