3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/muso/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1 KiB
Nix
Raw Normal View History

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";
version = "2.0.0";
src = fetchFromGitHub {
owner = "quebin31";
repo = pname;
rev = "68cc90869bcc0f202830a318fbfd6bb9bdb75a39";
sha256 = "1dnfslliss173igympl7h1zc0qz0g10kf96dwrcj6aglmvvw426p";
};
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/
'';
cargoSha256 = "1hgdzyz005244f2mh97js9ga0a6s2hcd6iydz07f1hmhsh1j2bwy";
2021-02-16 09:47:22 +00:00
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64) || 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 ];
maintainers = with maintainers; [ bloomvdomino ];
};
}