Restructuring

This commit is contained in:
2021-04-29 21:29:29 +05:30
parent 58cfa66af5
commit ecf68fec43
22 changed files with 496 additions and 27 deletions

View File

@@ -0,0 +1,26 @@
{lib, stdenv, fetchFromGitHub, discord-rpc, cmake, libmpdclient}:
with lib;
stdenv.mkDerivation rec{
name = "mpd_discord_richpresence";
src = fetchFromGitHub {
owner = "justas-d";
repo = "mpd-rich-presence-discord";
rev = "ced628d3eaf3f18c5eff286b0955c605616348ee";
sha256 = "0vl31sdgxalbnc4d4fggzqs2vsssibn53pjm6wj596cfkfpdf4y3";
};
buildInputs = [
libmpdclient
cmake
discord-rpc
];
configurePhase = ''
cmake .
'';
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
cp mpd_discord_richpresence $out/bin/
'';
}