2021-05-17 21:30:35 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform
|
|
|
|
, pkg-config, wrapGAppsHook, CoreServices
|
2021-02-16 09:47:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "muso";
|
2023-05-15 09:12:32 +01:00
|
|
|
version = "unstable-2021-09-02";
|
2021-02-16 09:47:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "quebin31";
|
|
|
|
repo = pname;
|
2023-05-15 09:12:32 +01:00
|
|
|
rev = "6dd1c6d3a82b21d4fb2606accf2f26179eb6eaf9";
|
|
|
|
hash = "sha256-09DWUER0ZWQuwfE3sjov2GjJNI7coE3D3E5iUy9mlSE=";
|
2021-02-16 09:47:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2021-05-17 21:30:35 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin CoreServices;
|
2021-02-16 09:47:22 +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-15 09:12:32 +01:00
|
|
|
cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI=";
|
2021-02-16 09:47:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-05-15 10:07:38 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2021-02-16 09:47:22 +00:00
|
|
|
description = "An automatic music sorter (based on ID3 tags)";
|
|
|
|
homepage = "https://github.com/quebin31/muso";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
2022-06-22 23:52:42 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-02-16 09:47:22 +00:00
|
|
|
};
|
|
|
|
}
|