From 6078310d02baf992b64c587589175b118688a742 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Sun, 9 Dec 2018 20:04:19 +0800 Subject: [PATCH 1/2] octoprint-plugins: remove redundant platforms --- pkgs/applications/misc/octoprint/plugins.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/applications/misc/octoprint/plugins.nix b/pkgs/applications/misc/octoprint/plugins.nix index 2e3bc058280a..9332b60b7a07 100644 --- a/pkgs/applications/misc/octoprint/plugins.nix +++ b/pkgs/applications/misc/octoprint/plugins.nix @@ -38,7 +38,6 @@ let meta = with stdenv.lib; { homepage = https://github.com/donovan6000/M33-Fio; description = "OctoPrint plugin for the Micro 3D printer"; - platforms = platforms.all; license = licenses.gpl3; maintainers = with maintainers; [ abbradar ]; }; @@ -60,7 +59,6 @@ let meta = with stdenv.lib; { homepage = https://github.com/OctoPrint/OctoPrint-MQTT; description = "Publish printer status MQTT"; - platforms = platforms.all; license = licenses.agpl3; maintainers = with maintainers; [ peterhoeg ]; }; @@ -80,7 +78,6 @@ let meta = with stdenv.lib; { homepage = https://github.com/MoonshineSG/OctoPrint-TitleStatus; description = "Show printers status in window title"; - platforms = platforms.all; license = licenses.agpl3; maintainers = with maintainers; [ abbradar ]; }; @@ -100,7 +97,6 @@ let meta = with stdenv.lib; { homepage = https://github.com/jneilliii/Octoprint-STLViewer; description = "A simple stl viewer tab for OctoPrint"; - platforms = platforms.all; license = licenses.agpl3; maintainers = with maintainers; [ abbradar ]; }; From 22af980cc28d4bd00c36ccb431f6f13985c07861 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Sun, 9 Dec 2018 20:47:12 +0800 Subject: [PATCH 2/2] octoprint-plugins: standardize naming --- pkgs/applications/misc/octoprint/plugins.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/misc/octoprint/plugins.nix b/pkgs/applications/misc/octoprint/plugins.nix index 9332b60b7a07..327a59618c2b 100644 --- a/pkgs/applications/misc/octoprint/plugins.nix +++ b/pkgs/applications/misc/octoprint/plugins.nix @@ -2,6 +2,8 @@ let buildPlugin = args: python2Packages.buildPythonPackage (args // { + pname = "OctoPrintPlugin-${args.pname}"; + inherit (args) version; propagatedBuildInputs = (args.propagatedBuildInputs or []) ++ [ octoprint ]; # none of the following have tests doCheck = false; @@ -13,7 +15,7 @@ let m3d-fio = self.m33-fio; # added 2016-08-13 m33-fio = buildPlugin rec { - name = "M33-Fio-${version}"; + pname = "M33-Fio"; version = "1.21"; src = fetchFromGitHub { @@ -36,15 +38,15 @@ let ''; meta = with stdenv.lib; { - homepage = https://github.com/donovan6000/M33-Fio; description = "OctoPrint plugin for the Micro 3D printer"; + homepage = https://github.com/donovan6000/M33-Fio; license = licenses.gpl3; maintainers = with maintainers; [ abbradar ]; }; }; mqtt = buildPlugin rec { - name = "OctoPrint-MQTT-${version}"; + pname = "MQTT"; version = "0.8.0"; src = fetchFromGitHub { @@ -57,15 +59,15 @@ let propagatedBuildInputs = with python2Packages; [ paho-mqtt ]; meta = with stdenv.lib; { - homepage = https://github.com/OctoPrint/OctoPrint-MQTT; description = "Publish printer status MQTT"; + homepage = https://github.com/OctoPrint/OctoPrint-MQTT; license = licenses.agpl3; maintainers = with maintainers; [ peterhoeg ]; }; }; titlestatus = buildPlugin rec { - name = "OctoPrint-TitleStatus-${version}"; + pname = "TitleStatus"; version = "0.0.4"; src = fetchFromGitHub { @@ -76,15 +78,15 @@ let }; meta = with stdenv.lib; { - homepage = https://github.com/MoonshineSG/OctoPrint-TitleStatus; description = "Show printers status in window title"; + homepage = https://github.com/MoonshineSG/OctoPrint-TitleStatus; license = licenses.agpl3; maintainers = with maintainers; [ abbradar ]; }; }; stlviewer = buildPlugin rec { - name = "OctoPrint-STLViewer-${version}"; + pname = "STLViewer"; version = "0.4.1"; src = fetchFromGitHub { @@ -95,8 +97,8 @@ let }; meta = with stdenv.lib; { - homepage = https://github.com/jneilliii/Octoprint-STLViewer; description = "A simple stl viewer tab for OctoPrint"; + homepage = https://github.com/jneilliii/Octoprint-STLViewer; license = licenses.agpl3; maintainers = with maintainers; [ abbradar ]; };