summary refs log tree commit diff
path: root/pkgs/applications/misc/getxbook/default.nix
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2016-11-13 17:12:04 +0000
committerobadz <obadz-git@obadz.com>2016-11-13 17:36:05 +0000
commitfeb8a692a17184124308409f89d4309073a63204 (patch)
tree7cd8a37f9ffe648fecada50cec8aea86057baec9 /pkgs/applications/misc/getxbook/default.nix
parentf9611cefc0a045d4e9a1b2d489e3c703fa70edad (diff)
downloadnixpkgs-feb8a692a17184124308409f89d4309073a63204.tar
nixpkgs-feb8a692a17184124308409f89d4309073a63204.tar.gz
nixpkgs-feb8a692a17184124308409f89d4309073a63204.tar.bz2
nixpkgs-feb8a692a17184124308409f89d4309073a63204.tar.lz
nixpkgs-feb8a692a17184124308409f89d4309073a63204.tar.xz
nixpkgs-feb8a692a17184124308409f89d4309073a63204.tar.zst
nixpkgs-feb8a692a17184124308409f89d4309073a63204.zip
getxbook: init at 1.2
Diffstat (limited to 'pkgs/applications/misc/getxbook/default.nix')
-rw-r--r--pkgs/applications/misc/getxbook/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/applications/misc/getxbook/default.nix b/pkgs/applications/misc/getxbook/default.nix
new file mode 100644
index 00000000000..a77f87f6f1f
--- /dev/null
+++ b/pkgs/applications/misc/getxbook/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, fetchurl, openssl }:
+
+stdenv.mkDerivation rec {
+  name    = "getxbook-${version}";
+  version = "1.2";
+
+  src = fetchurl {
+    url    = "https://njw.me.uk/getxbook/${name}.tar.xz";
+    sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs";
+  };
+
+  buildInputs = [ openssl ];
+
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  meta = with stdenv.lib; {
+    description = "A collection of tools to download books from Google Books";
+    homepage    = https://njw.me.uk/getxbook/;
+    license     = licenses.isc;
+    maintainers = with maintainers; [ obadz ];
+    platforms   = platforms.all;
+    inherit version;
+  };
+}