diff options
author | Naoki Pross <np@0hm.ch> | 2021-10-24 15:45:03 +0200 |
---|---|---|
committer | Naoki Pross <np@0hm.ch> | 2021-10-24 15:45:03 +0200 |
commit | f203414b019f95af5b4a9391f1f9962a937e60c0 (patch) | |
tree | 048392e6fc3417037c8598397f234af5765fa4c0 /src/nix | |
parent | Make gr block compilable (diff) | |
download | Fading-f203414b019f95af5b4a9391f1f9962a937e60c0.tar.gz Fading-f203414b019f95af5b4a9391f1f9962a937e60c0.zip |
Create nix overlay for gnuradio
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/dearpygui.nix | 37 | ||||
-rw-r--r-- | src/nix/gnuradio-overlay.nix | 8 |
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; + }; +} |