Skip to content

Commit

Permalink
Nix package: add .desktop and .service file
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Jul 23, 2023
1 parent 3848e0a commit 393c216
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ buildGoModule {
name = "mpd-mpris";
src = ./..;
vendorSha256 = "sha256-HCDJrp9WFB1z+FnYpOI5e/AojtdnpN2ZNtgGVaH/v/Q=";

postInstall = ''
mkdir -p $out/lib/systemd/user
substitute mpd-mpris.service $out/lib/systemd/user/mpd-mpris.service \
--replace "/usr/bin/mpd-mpris" "$out/bin/mpd-mpris"
mkdir -p $out/etc/xdg/autostart
substitute mpd-mpris.desktop $out/etc/xdg/autostart/mpd-mpris.desktop
'';
}

0 comments on commit 393c216

Please sign in to comment.