Merge pull request #247639 from r-ryantm/auto-update/mpd-mpris
mpd-mpris: 0.4.0-2 -> 0.4.1
This commit is contained in:
commit
f0d7ab08e7
|
@ -1,27 +1,37 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "mpd-mpris";
|
||||
version = "0.4.0-2";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "natsukagami";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-RGuscED0RvA1+5Aj+Kcnk1h/whU4npJ6hPq8GHWwxPU=";
|
||||
sha256 = "sha256-QxPkGWpCWiyEbChH9SHeD+SiV8k0c/G7MG/azksP3xU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-GmdD/4VYp3KeblNGgltFWHdOnK5qsBa2ygIYOBrH+b0=";
|
||||
patches = [
|
||||
# Makes Exec= path not absolute, see https://github.com/natsukagami/mpd-mpris/pull/42
|
||||
(fetchpatch {
|
||||
url = "https://github.com/natsukagami/mpd-mpris/commit/8a5b53b1aa3174c3ccb1db24fb4e39f90012b98f.patch";
|
||||
hash = "sha256-LArPq+RRPJOs0je1olqg+pK7nvU7UIlrpGtHv2PhIY4=";
|
||||
})
|
||||
];
|
||||
|
||||
vendorHash = "sha256-HCDJrp9WFB1z+FnYpOI5e/AojtdnpN2ZNtgGVaH/v/Q=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "cmd/${pname}" ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace mpd-mpris.service \
|
||||
--replace /usr/bin $out/bin
|
||||
mkdir -p $out/lib/systemd/user
|
||||
cp mpd-mpris.service $out/lib/systemd/user
|
||||
install -Dm644 mpd-mpris.service $out/lib/systemd/user/mpd-mpris.service
|
||||
install -Dm644 mpd-mpris.desktop $out/etc/xdg/autostart/mpd-mpris.desktop
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue