From d01221fd65f674ea83731104da0fcaa1ff1e828e Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Thu, 16 May 2024 16:20:21 +0200 Subject: [PATCH] feat: add isisdl overlay --- modules/nix.nix | 1 + overlays/isisdl.nix | 40 ++++++++++++++++++++++++ users/gandalf/modules/neovim/default.nix | 1 + users/gandalf/modules/packages.nix | 1 + 4 files changed, 43 insertions(+) create mode 100644 overlays/isisdl.nix diff --git a/modules/nix.nix b/modules/nix.nix index 770f378..789c9de 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -13,6 +13,7 @@ mfcl3750cdwlpr = (super.callPackage ../overlays/mfcl3750cdw.nix { }).driver; mfcl3750cdwcupswrapper = (super.callPackage ../overlays/mfcl3750cdw.nix { }).cupswrapper; pppdf = (super.python3Packages.callPackage ../overlays/pppdf { }); + isisdl = (super.python3Packages.callPackage ../overlays/isisdl.nix { }); }) ]; config = { diff --git a/overlays/isisdl.nix b/overlays/isisdl.nix new file mode 100644 index 0000000..e832120 --- /dev/null +++ b/overlays/isisdl.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonApplication +, fetchPypi +, cryptography +, requests +, pyyaml +, packaging +, colorama +, pyinotify +, distro +, psutil +}: +buildPythonApplication rec { + pname = "isisdl"; + version = "1.3.19"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-VcqaFqcoH+d1NpKq7QBVbXcbe0HfZ67kStGFiYmr/kE="; + }; + + propagatedBuildInputs = [ + cryptography + requests + pyyaml + packaging + colorama + pyinotify + distro + psutil + ]; + + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/Emily3403/isisdl"; + description = "A downloader for ISIS of TU-Berlin"; + license = licenses.mit; + }; +} diff --git a/users/gandalf/modules/neovim/default.nix b/users/gandalf/modules/neovim/default.nix index f618686..52388aa 100644 --- a/users/gandalf/modules/neovim/default.nix +++ b/users/gandalf/modules/neovim/default.nix @@ -8,6 +8,7 @@ */ home.packages = with pkgs; [ + tree-sitter # parser generator tool and an incremental parsing library lua-language-server clang-tools rust-analyzer diff --git a/users/gandalf/modules/packages.nix b/users/gandalf/modules/packages.nix index 5eb50d5..f937c14 100644 --- a/users/gandalf/modules/packages.nix +++ b/users/gandalf/modules/packages.nix @@ -15,6 +15,7 @@ imagemagick # software suite to create, edit, compose, or convert bitmap images ghostscript # postscript interpreter (mainline version) ventoy-full # bootable usb solution + isisdl # downloader for isis of tu-berlin ]; }