summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix8
-rw-r--r--pkgs/libnpupnp/default.nix39
-rw-r--r--pkgs/libupnpp/default.nix42
-rw-r--r--pkgs/upmpdcli/default.nix43
4 files changed, 130 insertions, 2 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index f4b4a25..01810e2 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -1,5 +1,9 @@
-self: super: {
+pkgs: super: {
eth = {
- recipesEthMoe = self.callPackage ( builtins.fetchGit { url = "https://github.com/ethulhu/recipes.eth.moe"; } ) {};
+ recipesEthMoe = pkgs.callPackage ( builtins.fetchGit { url = "https://github.com/ethulhu/recipes.eth.moe"; } ) {};
+
+ libnpupnp = pkgs.callPackage ./libnpupnp { };
+ libupnpp = pkgs.callPackage ./libupnpp { };
+ upmpdcli = pkgs.callPackage ./upmpdcli { };
};
}
diff --git a/pkgs/libnpupnp/default.nix b/pkgs/libnpupnp/default.nix
new file mode 100644
index 0000000..ced2d58
--- /dev/null
+++ b/pkgs/libnpupnp/default.nix
@@ -0,0 +1,39 @@
+{ pkgs ? import <nixpkgs> {}
+, autoconf
+, autoreconfHook
+, curl
+, expat
+, fetchgit
+, libmicrohttpd
+, pkgconfig
+, stdenv
+}:
+
+stdenv.mkDerivation rec {
+ name = "libnpupnp-${version}";
+ version = "latest";
+
+ src = fetchgit {
+ url = "https://framagit.org/medoc92/npupnp.git";
+ rev = "98433263968de83f13416bf096a31fa354a646fa";
+ sha256 = "0i5hd7pbmcdhh46hqf50881jbl7ycv3gpvczbpzkx5ffbnpxxika";
+ };
+
+ nativeBuildInputs = [
+ autoconf
+ autoreconfHook
+ pkgconfig
+ ];
+
+ buildInputs = [
+ curl.dev
+ expat
+ libmicrohttpd
+ ];
+
+ meta = {
+ description = "A C++ base UPnP library, derived from Portable UPnP, a.k.a libupnp";
+ homepage = "https://framagit.org/medoc92/npupnp";
+ license = stdenv.lib.licenses.bsd3;
+ };
+}
diff --git a/pkgs/libupnpp/default.nix b/pkgs/libupnpp/default.nix
new file mode 100644
index 0000000..5775462
--- /dev/null
+++ b/pkgs/libupnpp/default.nix
@@ -0,0 +1,42 @@
+{ pkgs ? import <nixpkgs> {}
+, autoconf
+, autoreconfHook
+, curl
+, expat
+, fetchgit
+, libmicrohttpd
+, libnpupnp ? pkgs.eth.libnpupnp
+, pkgconfig
+, stdenv
+}:
+
+stdenv.mkDerivation rec {
+ name = "libupnpp-${version}";
+ version = "latest";
+
+ src = fetchgit {
+ url = "https://framagit.org/medoc92/libupnpp.git";
+ rev = "762e35f4f66df183b8df8b1fc4dbab187068441d";
+ sha256 = "085virkyz8cp55kd6k3zadhclh10qi78ijd84dnbmk852w57xsx9";
+ };
+
+ nativeBuildInputs = [
+ autoconf
+ autoreconfHook
+ pkgconfig
+ ];
+
+ buildInputs = [
+ curl.dev
+ libnpupnp
+ expat
+ ];
+
+ enableParallelBuilding = true;
+
+ meta = {
+ description = "A higher level C++ API over libnpupnp or libupnp";
+ homepage = "https://www.lesbonscomptes.com/upmpdcli/libupnpp-refdoc/libupnpp-ctl.html";
+ license = stdenv.lib.licenses.lgpl21;
+ };
+}
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;
+ };
+}