diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-05-22 16:37:24 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-05-22 16:37:24 +0100 |
commit | a0000bf3f1789555cdd1d8b586ff611ef9ad7e64 (patch) | |
tree | 8354d5d2890083e0766ba8139193fac601bc6544 /pkgs/upmpdcli | |
parent | 50b27be54d368f38945bae71bc0683330c2a7693 (diff) |
create nixpkgs for upmpdcli and dependencies, also a NixOS module
Diffstat (limited to 'pkgs/upmpdcli')
-rw-r--r-- | pkgs/upmpdcli/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/upmpdcli/default.nix b/pkgs/upmpdcli/default.nix new file mode 100644 index 0000000..7ae3ec0 --- /dev/null +++ b/pkgs/upmpdcli/default.nix @@ -0,0 +1,43 @@ +{ pkgs ? import <nixpkgs> {} +, autoconf +, jsoncpp +, autoreconfHook +, curl +, fetchgit +, libmicrohttpd +, libupnpp ? pkgs.eth.libupnpp +, mpd_clientlib +, pkgconfig +, stdenv +}: + +stdenv.mkDerivation rec { + name = "upmpdcli-${version}"; + version = "latest"; + + src = fetchgit { + url = "https://framagit.org/medoc92/upmpdcli.git"; + rev = "898b202b9c23be423775207a5407046a1e70fd52"; + sha256 = "0i25za83r2rgipx3m72n8cma7s2jqibvgm6r0kh4kcy2rlxwz0kv"; + }; + + nativeBuildInputs = [ + autoconf + autoreconfHook + pkgconfig + ]; + + buildInputs = [ + jsoncpp + curl.dev + libmicrohttpd + libupnpp + mpd_clientlib + ]; + + meta = { + description = "An UPnP Audio Media Renderer based on MPD"; + homepage = "https://www.lesbonscomptes.com/upmpdcli/"; + license = stdenv.lib.licenses.lgpl21; + }; +} |