mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ 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 = "An automatic music sorter (based on ID3 tags)";
|
|
mainProgram = "muso";
|
|
homepage = "https://github.com/quebin31/muso";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|