package.scm 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. (use-modules (guix packages)
  2. (guix download)
  3. (guix git-download)
  4. (guix build-system gnu)
  5. (guix licenses)
  6. ;; copied from guile-json, not sure if it is really needed
  7. (gnu packages pkg-config)
  8. ;; in the guix repo there is (define-public guile-3.0 ...) but the
  9. ;; name is set to "guile". guile is an input to our package,
  10. ;; because our package is a guile library.
  11. (gnu packages guile))
  12. (define-public guile-fslib
  13. (package
  14. (name "guile-fslib")
  15. (version "0.2.0")
  16. (source
  17. (origin
  18. (method git-fetch)
  19. (uri (git-reference
  20. (url "https://notabug.org/ZelphirKaltstahl/guile-fslib.git")
  21. (commit version)))
  22. ;; (method url-fetch)
  23. ;; (uri
  24. ;; (string-append "https://notabug.org/ZelphirKaltstahl/guile-fslib/archive/"
  25. ;; version
  26. ;; ".tar.gz"))
  27. ;; calculate the string using "guix hash the-file"
  28. (sha256
  29. (base32
  30. "0lwwkwd2h9m967z19midbvgslfppb0a45f328zrx8z4fgl549kl1"))))
  31. (build-system gnu-build-system)
  32. (native-inputs
  33. `(("guile" ,guile-3.0)))
  34. ;; inputs (copied from guile-json)
  35. ;; (native-inputs `(("pkg-config" ,pkg-config)
  36. ;; ("guile" ,guile-3.0)))
  37. ;; (inputs `(("guile" ,guile-3.0)))
  38. ;; metadata fields
  39. (synopsis "file system library for GNU Guile")
  40. (description
  41. "guile-fslib is a library, which aims to simplify working with locations in the file system.")
  42. (home-page "no website")
  43. (license agpl3)))
  44. guile-fslib