1 { lib, stdenv, fetchFromGitHub, rustPlatform
2 , pkg-config, wrapGAppsHook, CoreServices
5 rustPlatform.buildRustPackage rec {
7 version = "unstable-2021-09-02";
9 src = fetchFromGitHub {
12 rev = "6dd1c6d3a82b21d4fb2606accf2f26179eb6eaf9";
13 hash = "sha256-09DWUER0ZWQuwfE3sjov2GjJNI7coE3D3E5iUy9mlSE=";
16 nativeBuildInputs = [ pkg-config wrapGAppsHook ];
17 buildInputs = lib.optional stdenv.isDarwin CoreServices;
20 substituteInPlace lib/utils.rs \
21 --replace "/usr/share/muso" "$out/share/muso"
25 mkdir -p $out/share/muso
26 cp share/* $out/share/muso/
29 cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI=";
32 broken = stdenv.isDarwin;
33 description = "An automatic music sorter (based on ID3 tags)";
35 homepage = "https://github.com/quebin31/muso";
36 license = with licenses; [ gpl3Plus ];
37 maintainers = with maintainers; [ ];