biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / muso / default.nix
blob30b26e7e59796613c5f7208183004761442d4636
1 { lib, stdenv, fetchFromGitHub, rustPlatform
2 , pkg-config, wrapGAppsHook, CoreServices
3 }:
5 rustPlatform.buildRustPackage rec {
6   pname = "muso";
7   version = "unstable-2021-09-02";
9   src = fetchFromGitHub {
10     owner = "quebin31";
11     repo = pname;
12     rev = "6dd1c6d3a82b21d4fb2606accf2f26179eb6eaf9";
13     hash = "sha256-09DWUER0ZWQuwfE3sjov2GjJNI7coE3D3E5iUy9mlSE=";
14   };
16   nativeBuildInputs = [ pkg-config wrapGAppsHook ];
17   buildInputs = lib.optional stdenv.isDarwin CoreServices;
19   preConfigure = ''
20     substituteInPlace lib/utils.rs \
21       --replace "/usr/share/muso" "$out/share/muso"
22   '';
24   postInstall = ''
25     mkdir -p $out/share/muso
26     cp share/* $out/share/muso/
27   '';
29   cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI=";
31   meta = with lib; {
32     broken = stdenv.isDarwin;
33     description = "An automatic music sorter (based on ID3 tags)";
34     mainProgram = "muso";
35     homepage = "https://github.com/quebin31/muso";
36     license = with licenses; [ gpl3Plus ];
37     maintainers = with maintainers; [ ];
38   };