Misc
This commit is contained in:
33
flake.nix
33
flake.nix
@@ -82,7 +82,9 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
#"prefix=${placeholder "out"}"
|
||||||
|
#"bindir=${placeholder "out"}/bin"
|
||||||
|
#"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
#"--with-linux-dir=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
#"--with-linux-dir=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
|
||||||
#"LOCALEDIR=${placeholder "out"}"
|
#"LOCALEDIR=${placeholder "out"}"
|
||||||
"--with-realtime=uspace"
|
"--with-realtime=uspace"
|
||||||
@@ -95,13 +97,34 @@
|
|||||||
#"PYTHON_LDFLAGS=-L${pkgs.python39Packages.python}/lib"
|
#"PYTHON_LDFLAGS=-L${pkgs.python39Packages.python}/lib"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
#"prefix=${placeholder "out"}"
|
||||||
|
#"prefix="
|
||||||
|
"EMC2_RTLIB_DIR=/lib/linuxcnc/modules"
|
||||||
|
"SITEPY=/lib/python"
|
||||||
|
"bindir=/bin"
|
||||||
|
"libdir=/lib"
|
||||||
|
"sysconfdir=/etc"
|
||||||
|
"moduledir=/lib/linuxcnc/modules"
|
||||||
|
"docsdir=/share/doc"
|
||||||
|
"mandir=/share/man"
|
||||||
|
"includedir=/include"
|
||||||
|
# TODO find out what is in ncfiles
|
||||||
|
#"ncfilesdir=/NC"
|
||||||
|
"ncfilesdir=/share"
|
||||||
|
"tcldir=/lib/tcltk"
|
||||||
|
"localedir=/locale"
|
||||||
|
"datadir=/share"
|
||||||
|
];
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
substituteInPlace Makefile --replace 'chown' '#chown'
|
substituteInPlace Makefile --replace 'chown' '#chown'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
|
#"bindir=/bin"
|
||||||
"INSTALL=install"
|
"INSTALL=install"
|
||||||
#"DESTDIR=${placeholder "out"}"
|
"DESTDIR=${placeholder "out"}"
|
||||||
"SETUID=install"
|
"SETUID=install"
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -110,11 +133,11 @@
|
|||||||
pkg-config
|
pkg-config
|
||||||
#wrapGAppsHook
|
#wrapGAppsHook
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
|
makeWrapper
|
||||||
];
|
];
|
||||||
#nativeBuildInputs = [ pkgs.pkg-config ];
|
#nativeBuildInputs = [ pkgs.pkg-config ];
|
||||||
postInstall = ''
|
postBuild = ''
|
||||||
ls $out/bin
|
substituteInPlace ../scripts/linuxcnc --replace 'wish' '${pkgs.tk}/bin/wish'
|
||||||
substituteInPlace $out/bin/linuxcnc --replace 'wish' '${pkgs.tk}/bin/wish'
|
|
||||||
'';
|
'';
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
(python3.withPackages
|
(python3.withPackages
|
||||||
|
|||||||
Reference in New Issue
Block a user