summaryrefslogtreecommitdiff
path: root/pkgs/dlnatoad/default.nix
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-05-24 22:13:17 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-05-24 22:13:17 +0100
commit46040ea7b1911c09b270f65cf5a5548a91f16e95 (patch)
treeae9c372529b62766d7534ad9dd51ad1905b108be /pkgs/dlnatoad/default.nix
parent72ceb05070fb2a4aecefbecc6f582b41b9e71b1c (diff)
add DLNAtoad package & service module
Diffstat (limited to 'pkgs/dlnatoad/default.nix')
-rw-r--r--pkgs/dlnatoad/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/dlnatoad/default.nix b/pkgs/dlnatoad/default.nix
new file mode 100644
index 0000000..e5ecdae
--- /dev/null
+++ b/pkgs/dlnatoad/default.nix
@@ -0,0 +1,27 @@
+# This file has been generated by mavenix-2.3.3. Configure the build here!
+# https://github.com/nix-community/mavenix.
+
+{ pkgs
+, fetchgit
+, mavenix ? import ./mavenix.nix { inherit pkgs; }
+, doCheck ? false
+}:
+
+mavenix.buildMaven {
+ inherit doCheck;
+
+ src = fetchgit {
+ url = "https://github.com/haku/dlnatoad";
+ rev = "837e801b8da5726f25e73a4fd70c991eccc942c5";
+ sha256 = "060360q4n3li773rviq8ab1931l0gfk5w9dqpc0711prng5ywqy4";
+ };
+
+ infoFile = ./mavenix.lock;
+
+ buildInputs = with pkgs; [ makeWrapper ];
+
+ postInstall = ''
+ makeWrapper ${pkgs.jre_headless}/bin/java $out/bin/dlnatoad \
+ --add-flags "-jar $out/share/java/dlnatoad-1-SNAPSHOT-jar-with-dependencies.jar"
+ '';
+}