From bbce0e88b9fd524be94b2a116bfb720e2cc063b9 Mon Sep 17 00:00:00 2001 From: Francesco Zanini Date: Tue, 10 Mar 2020 12:46:48 +0100 Subject: [PATCH] libgen-cli: init at 1.0.5 --- pkgs/tools/misc/libgen-cli/default.nix | 30 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/misc/libgen-cli/default.nix diff --git a/pkgs/tools/misc/libgen-cli/default.nix b/pkgs/tools/misc/libgen-cli/default.nix new file mode 100644 index 000000000000..c34e934fba48 --- /dev/null +++ b/pkgs/tools/misc/libgen-cli/default.nix @@ -0,0 +1,30 @@ +{ lib, buildGoModule, fetchFromGitHub }: +buildGoModule rec { + pname = "libgen-cli"; + version = "1.0.5"; + + src = fetchFromGitHub { + owner = "ciehanski"; + repo = pname; + rev = "v${version}"; + sha256 = "1lfsnyzin2dqhwhz6phms6yipli88sqiw55ls18dfv7bvx30sqlp"; + }; + + modSha256 = "1k16zjb7p65g72hr9vsk38jhpsy1yclm7fjgq47qy6jwjd44w1bi"; + + subPackages = [ "." ]; + + meta = with lib; { + homepage = "https://github.com/ciehanski/libgen-cli"; + description = + "A CLI tool used to access the Library Genesis dataset; written in Go"; + longDescription = '' + libgen-cli is a command line interface application which allows users to + quickly query the Library Genesis dataset and download any of its + contents. + ''; + license = licenses.asl20; + platforms = platforms.all; + maintainers = with maintainers; [ zaninime ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 269cfe4fe0d6..37ea31e8fe56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3496,7 +3496,7 @@ in fuse-7z-ng = callPackage ../tools/filesystems/fuse-7z-ng { }; fuse-overlayfs = callPackage ../tools/filesystems/fuse-overlayfs {}; - + fusee-interfacee-tk = callPackage ../applications/misc/fusee-interfacee-tk { }; fusee-launcher = callPackage ../development/tools/fusee-launcher { }; @@ -4539,6 +4539,8 @@ in libsmi = callPackage ../development/libraries/libsmi { }; + libgen-cli = callPackage ../tools/misc/libgen-cli { }; + licensor = callPackage ../tools/misc/licensor { }; lesspipe = callPackage ../tools/misc/lesspipe { };