guix.scm 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ;; Copyright (C) 2024 mio <stigma@disroot.org>
  2. ;;
  3. ;; This file is part of pixiv_down.
  4. ;;
  5. ;; This program is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, version 3 of the License.
  8. ;;
  9. ;; This program is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;;
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. ;;
  17. ;; This is a GNU Guix package description that can be used for spawning
  18. ;; new development shells. Simply run:
  19. ;;
  20. ;; guix shell -D -f guix.scm
  21. ;;
  22. ;; To run pixiv_down in a container you'll need network access and to
  23. ;; expose the output directory specified in your settings.conf:
  24. ;;
  25. ;; guix shell -C --network --share=/home/user/Pictures -D -f guix.scm
  26. ;;
  27. ;; In the new shell, run:
  28. ;;
  29. ;; ./bootstrap && ./configure && make
  30. ;;
  31. (use-modules (guix packages)
  32. (guix gexp)
  33. (guix licenses)
  34. (guix git-download)
  35. (guix build-system meson)
  36. (gnu packages certs)
  37. (gnu packages curl)
  38. (gnu packages gcc) ;; gdc
  39. (gnu packages imagemagick)
  40. (gnu packages pkg-config))
  41. (define %source-dir (dirname (current-filename)))
  42. (package
  43. (name "pixiv_down")
  44. (version "git")
  45. (source (local-file %source-dir
  46. #:recursive? #t
  47. #:select? (git-predicate %source-dir)))
  48. (build-system meson-build-system)
  49. (arguments
  50. (list #:tests? #f))
  51. (native-inputs
  52. (list
  53. gdc
  54. pkg-config))
  55. (inputs
  56. (list
  57. curl
  58. graphicsmagick
  59. nss-certs))
  60. (home-page "https://yume-neru.neocities.org/p/pixiv_down.html")
  61. (synopsis "A command-line tool for downloading content from pixiv")
  62. (description
  63. "A command-line tool for downloading different types of works from pixiv.
  64. Supports downloading illustrations, ugoira, manga, and novels.")
  65. (license gpl3))