aboutsummaryrefslogtreecommitdiffstats
path: root/src/nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/dearpygui.nix37
-rw-r--r--src/nix/gnuradio-overlay.nix8
2 files changed, 45 insertions, 0 deletions
diff --git a/src/nix/dearpygui.nix b/src/nix/dearpygui.nix
new file mode 100644
index 0000000..1b26eaf
--- /dev/null
+++ b/src/nix/dearpygui.nix
@@ -0,0 +1,37 @@
+{ lib, pkgs, buildPythonPackage, fetchPypi, isPy38, autoPatchelfHook }:
+
+assert isPy38;
+
+buildPythonPackage rec {
+ pname = "dearpygui";
+ version = "1.0.2";
+ format = "wheel";
+
+ # src = fetchFromGitHub {
+ # owner = "hoffstadt";
+ # repo = "DearPyGui";
+ # rev = "v${version}";
+ # sha256 = "094s1r1jjgj6512dp5z5gn50m5g5b7qg6c2wgxhjsn38mxivpd2h";
+ # fetchSubmodules = true;
+ # };
+
+ src = fetchPypi {
+ inherit pname version format;
+ python = "cp38";
+ abi = "cp38";
+ platform = "manylinux1_x86_64";
+ sha256 = "10y8a3v135pziknnrzg8x5q5l6p7jvxgva8r8l5vjhdq9p5mxnab";
+ };
+
+ # dontUseCmakeConfigure = false;
+ # nativeBuildInputs = with pkgs; [ cmake ];
+ nativeBuildInputs = [ autoPatchelfHook ];
+
+ buildInputs = (with pkgs; [
+ libGL libGL_driver
+ ]) ++ (with pkgs.xorg; [
+ libX11 libXrandr libXinerama libXcursor libXi
+ ]);
+
+ meta = with lib; {};
+}
diff --git a/src/nix/gnuradio-overlay.nix b/src/nix/gnuradio-overlay.nix
new file mode 100644
index 0000000..48145b8
--- /dev/null
+++ b/src/nix/gnuradio-overlay.nix
@@ -0,0 +1,8 @@
+self: super: {
+ gnuradio = super.gnuradio.override {
+ extraPythonPackages = super.lib.attrVals [
+ "setuptools"
+ # Add more python packages here if you need any.
+ ] super.gnuradio.unwrapped.python.pkgs;
+ };
+}