Rename packages
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.local.packages.linuxcnc-base;
|
cfg = config.local.packages.linuxcnc;
|
||||||
inherit (builtins) filter map pathExists listToAttrs;
|
inherit (builtins) filter map pathExists listToAttrs;
|
||||||
in {
|
in {
|
||||||
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
|
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [ linuxcnc-with-ethercat ];
|
environment.systemPackages = with pkgs; [ linuxcnc ];
|
||||||
|
|
||||||
security.wrappers = listToAttrs (map (f: {
|
security.wrappers = listToAttrs (map (f: {
|
||||||
name = f;
|
name = f;
|
||||||
@@ -14,8 +14,8 @@ in {
|
|||||||
setuid = true;
|
setuid = true;
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "root";
|
group = "root";
|
||||||
source = "${pkgs.linuxcnc-with-ethercat}/bin/${f}-nosetuid";
|
source = "${pkgs.linuxcnc}/bin/${f}-nosetuid";
|
||||||
};
|
};
|
||||||
}) (filter (f: pathExists "${pkgs.linuxcnc-with-ethercat}/bin/${f}-nosetuid") pkgs.linuxcnc-with-ethercat.setuidApps));
|
}) (filter (f: pathExists "${pkgs.linuxcnc}/bin/${f}-nosetuid") pkgs.linuxcnc.setuidApps));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
{ lib, stdenv, autoreconfHook, wrapGAppsHook, qt5, makeWrapper, fetchFromGitHub, libtool, pkgconfig,
|
{ lib, stdenv, autoreconfHook, wrapGAppsHook, qt5, makeWrapper, fetchFromGitHub, libtool, pkgconfig,
|
||||||
readline_5, ncurses, libtirpc, systemd, libmodbus, libusb, glib, gtk2, gtk3, procps, kmod, sysctl,
|
readline_5, ncurses, libtirpc, systemd, libmodbus, libusb, glib, gtk2, gtk3, procps, kmod, sysctl,
|
||||||
util-linux, psmisc, intltool, tcl, tk, bwidget, tkimg, tclx, tkblt, pango, cairo, boost, espeak, gst_all_1,
|
util-linux, psmisc, intltool, tcl, tk, bwidget, tkimg, tclx, tkblt, pango, cairo, boost, espeak, gst_all_1,
|
||||||
python3Full, yapps, gobject-introspection, libGLU, xorg, libepoxy, hicolor-icon-theme, glxinfo, bash,
|
python3Full, yapps, gobject-introspection, libGLU, xorg, libepoxy, hicolor-icon-theme, glxinfo, bash
|
||||||
hal-cia402, linuxcnc-ethercat
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pythonPkg = (python3Full.withPackages (ps: [
|
pythonPkg = (python3Full.withPackages (ps: [
|
||||||
@@ -24,7 +23,7 @@ in
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
pname = "linuxcnc";
|
pname = "linuxcnc-base";
|
||||||
version = "2.9-git";
|
version = "2.9-git";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
@@ -51,7 +50,6 @@ stdenv.mkDerivation rec {
|
|||||||
psmisc intltool tcl tk bwidget tkimg tclx tkblt pango cairo pythonPkg.pkgs.pygobject3 gobject-introspection
|
psmisc intltool tcl tk bwidget tkimg tclx tkblt pango cairo pythonPkg.pkgs.pygobject3 gobject-introspection
|
||||||
boost_python pythonPkg.pkgs.boost pythonPkg qt5.qtbase espeak gst_all_1.gstreamer
|
boost_python pythonPkg.pkgs.boost pythonPkg qt5.qtbase espeak gst_all_1.gstreamer
|
||||||
ncurses readline_5 libGLU xorg.libXmu libepoxy hicolor-icon-theme glxinfo
|
ncurses readline_5 libGLU xorg.libXmu libepoxy hicolor-icon-theme glxinfo
|
||||||
hal-cia402 linuxcnc-ethercat
|
|
||||||
];
|
];
|
||||||
|
|
||||||
preAutoreconf = ''
|
preAutoreconf = ''
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, stdenv, linuxcnc, etherlab }:
|
{ config, lib, pkgs, stdenv, linuxcnc-base, etherlab }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ which expat ];
|
nativeBuildInputs = with pkgs; [ which expat ];
|
||||||
|
|
||||||
buildInputs = [ linuxcnc etherlab.ethercat ];
|
buildInputs = [ linuxcnc-base etherlab.ethercat ];
|
||||||
|
|
||||||
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{ lib, stdenv, autoreconfHook, wrapGAppsHook, qt5, makeWrapper, fetchFromGitHub, libtool, pkgconfig,
|
{ lib, stdenv, autoreconfHook, wrapGAppsHook, qt5, makeWrapper, fetchFromGitHub, libtool, pkgconfig,
|
||||||
readline_5, ncurses, libtirpc, systemd, libmodbus, libusb, glib, gtk2, gtk3, procps, kmod, sysctl,
|
readline_5, ncurses, libtirpc, systemd, libmodbus, libusb, glib, gtk2, gtk3, procps, kmod, sysctl,
|
||||||
util-linux, psmisc, intltool, tcl, tk, bwidget, tkimg, tclx, tkblt, pango, cairo, boost, espeak, gst_all_1,
|
util-linux, psmisc, intltool, tcl, tk, bwidget, tkimg, tclx, tkblt, pango, cairo, boost, espeak, gst_all_1,
|
||||||
python3Full, yapps, gobject-introspection, libGLU, xorg, libepoxy, hicolor-icon-theme, glxinfo, bash
|
python3Full, yapps, gobject-introspection, libGLU, xorg, libepoxy, hicolor-icon-theme, glxinfo, bash,
|
||||||
|
hal-cia402, linuxcnc-ethercat
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pythonPkg = (python3Full.withPackages (ps: [
|
pythonPkg = (python3Full.withPackages (ps: [
|
||||||
@@ -23,7 +24,7 @@ in
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
pname = "linuxcnc-base";
|
pname = "linuxcnc";
|
||||||
version = "2.9-git";
|
version = "2.9-git";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
@@ -50,6 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
psmisc intltool tcl tk bwidget tkimg tclx tkblt pango cairo pythonPkg.pkgs.pygobject3 gobject-introspection
|
psmisc intltool tcl tk bwidget tkimg tclx tkblt pango cairo pythonPkg.pkgs.pygobject3 gobject-introspection
|
||||||
boost_python pythonPkg.pkgs.boost pythonPkg qt5.qtbase espeak gst_all_1.gstreamer
|
boost_python pythonPkg.pkgs.boost pythonPkg qt5.qtbase espeak gst_all_1.gstreamer
|
||||||
ncurses readline_5 libGLU xorg.libXmu libepoxy hicolor-icon-theme glxinfo
|
ncurses readline_5 libGLU xorg.libXmu libepoxy hicolor-icon-theme glxinfo
|
||||||
|
hal-cia402 linuxcnc-ethercat
|
||||||
];
|
];
|
||||||
|
|
||||||
preAutoreconf = ''
|
preAutoreconf = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user