From a0000bf3f1789555cdd1d8b586ff611ef9ad7e64 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Fri, 22 May 2020 16:37:24 +0100 Subject: create nixpkgs for upmpdcli and dependencies, also a NixOS module --- pkgs/upmpdcli/default.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/upmpdcli/default.nix (limited to 'pkgs/upmpdcli') 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 {} +, 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; + }; +} -- cgit v1.2.3