blob: ba235b5157a51817c3332ee65a3cefe8fe083ca3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchFromGitHub, rustPlatform
, pkg-config, wrapGAppsHook3, CoreServices
}:
rustPlatform.buildRustPackage rec {
pname = "muso";
version = "unstable-2021-09-02";
src = fetchFromGitHub {
owner = "quebin31";
repo = pname;
rev = "6dd1c6d3a82b21d4fb2606accf2f26179eb6eaf9";
hash = "sha256-09DWUER0ZWQuwfE3sjov2GjJNI7coE3D3E5iUy9mlSE=";
};
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
buildInputs = lib.optional stdenv.isDarwin CoreServices;
preConfigure = ''
substituteInPlace lib/utils.rs \
--replace "/usr/share/muso" "$out/share/muso"
'';
postInstall = ''
mkdir -p $out/share/muso
cp share/* $out/share/muso/
'';
cargoHash = "sha256-+UVUejKCfjC6zdW315wmu7f3A5GmnoQ3rIk8SK6LIRI=";
meta = with lib; {
broken = stdenv.isDarwin;
description = "Automatic music sorter (based on ID3 tags)";
mainProgram = "muso";
homepage = "https://github.com/quebin31/muso";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ crertel ];
};
}
|