mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 07:31:19 +00:00
motus: 0.4.0 -> 0.5.0 (#541318)
This commit is contained in:
@@ -13,23 +13,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||
__structuredAttrs = true;
|
||||
|
||||
pname = "motus";
|
||||
version = "0.4.0";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oleiade";
|
||||
repo = "motus";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-lMNXg6YYTxAycxOiVtBGrSHpccLwerIQcY25K/NkqMo=";
|
||||
hash = "sha256-7lFKlU9+/NvJi9NsVpve3IvzpS8OVHaH9cs/WRGjBV8=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-6MKEHnB2MJVB4cNvz3JYlhuzxhzsA+Pq5OkpLNoAEyU=";
|
||||
|
||||
# The CLI crate version was not bumped to match the v0.4.0 release tag:
|
||||
# https://github.com/oleiade/motus/issues/58
|
||||
postPatch = ''
|
||||
substituteInPlace crates/motus-cli/src/main.rs \
|
||||
--replace-fail '#[command(version = "0.3.1")]' '#[command(version = "${finalAttrs.version}")]'
|
||||
'';
|
||||
cargoHash = "sha256-0qK3omTkzVxkjFn2fIowl+sFmjF/hSHAROyge5CDdFg=";
|
||||
|
||||
buildInputs = lib.optionals (withClipboard && stdenv.hostPlatform.isLinux) [ libxcb ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user