nixpkgs/pkgs/applications/audio/muso/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00

37 lines
914 B
Nix

{ lib, fetchFromGitHub, rustPlatform
, pkg-config, wrapGAppsHook
}:
rustPlatform.buildRustPackage rec {
pname = "muso";
version = "2.0.0";
src = fetchFromGitHub {
owner = "quebin31";
repo = pname;
rev = "68cc90869bcc0f202830a318fbfd6bb9bdb75a39";
sha256 = "1dnfslliss173igympl7h1zc0qz0g10kf96dwrcj6aglmvvw426p";
};
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
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";
meta = with lib; {
description = "An automatic music sorter (based on ID3 tags)";
homepage = "https://github.com/quebin31/muso";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ bloomvdomino ];
};
}