2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform
|
2024-05-15 15:35:15 +00:00
|
|
|
, pkg-config, wrapGAppsHook3, CoreServices
|
2021-02-17 17:02:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "muso";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2021-09-02";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "quebin31";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "6dd1c6d3a82b21d4fb2606accf2f26179eb6eaf9";
|
|
|
|
hash = "sha256-09DWUER0ZWQuwfE3sjov2GjJNI7coE3D3E5iUy9mlSE=";
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin CoreServices;
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace lib/utils.rs \
|
|
|
|
--replace "/usr/share/muso" "$out/share/muso"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/muso
|
|
|
|
cp share/* $out/share/muso/
|
|
|
|
'';
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI=";
|
2021-02-17 17:02:09 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Automatic music sorter (based on ID3 tags)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "muso";
|
2021-02-17 17:02:09 +00:00
|
|
|
homepage = "https://github.com/quebin31/muso";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ crertel ];
|
2021-02-17 17:02:09 +00:00
|
|
|
};
|
|
|
|
}
|