From 929e848d78b6b729ca17c5e7499aaec6b58ba14e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 24 Oct 2022 13:03:34 +0200 Subject: pkgs: add lorem-text --- flake.nix | 2 +- pkgs/default.nix | 2 ++ pkgs/lorem-text/default.nix | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 pkgs/lorem-text/default.nix diff --git a/flake.nix b/flake.nix index 51f2fe4..4abffe1 100644 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ description = "Cynerd's personal flake"; inputs = { - nixpkgs.url = "github:Cynerd/nixpkgs/oci-container-docker"; + nixpkgs.url = "github:Cynerd/nixpkgs/tmprevert"; shellrc.url = "git+https://git.cynerd.cz/shellrc"; personal-secret.url = "git+ssh://git@cynerd.cz/nixos-personal-secret"; nixturris = { diff --git a/pkgs/default.nix b/pkgs/default.nix index e2363b0..7c1350b 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -20,6 +20,8 @@ let sdcv-unwrapped = callPackage ./sdcv { }; sdcv = callPackage ./stardict/wrapper.nix { stardict = sdcv-unwrapped; }; + lorem-text = callPackage ./lorem-text { }; + # Package to be installed to the user's profile cynerd-profile = nixpkgs.symlinkJoin { name = "cynerd-profile"; diff --git a/pkgs/lorem-text/default.nix b/pkgs/lorem-text/default.nix new file mode 100644 index 0000000..7927346 --- /dev/null +++ b/pkgs/lorem-text/default.nix @@ -0,0 +1,24 @@ +{ + python3Packages, + fetchFromGitHub, +}: +let + + pypkg = { + buildPythonPackage, + click, + }: + buildPythonPackage { + pname = "lorem_text"; + version = "2.1"; + src = fetchFromGitHub { + owner = "TheAbhijeet"; + repo = "lorem_text"; + rev = "63a26b95a86f696d23ba059eac70ba1d78e553fb"; + sha256 = "lTksWfXaUxmtWiGK+8kEwHNGNlluX+q3FWXZfzfEDCk="; + }; + propagatedBuildInputs = [click]; + passthru.pythonPackage = pypkg; + }; + +in python3Packages.callPackage pypkg { } -- cgit v1.2.3