contact.ng0@cryptolab.net writes:
Toggle quote (3 lines)
> From: ng0 <ng0@libertad.pw>>> * gnu/packages/linux.scm (kbd-neo): New variable.[…]
Toggle quote (3 lines)
> +;; The Neo layout is a GPL3 licensed layout already present in Xorg,> +;; but not in kbd. home-page: https://neo-layout.org
Please remove this comment.
Toggle quote (4 lines)
> +(define kbd-neo> + (let ((svn-revision 2476)> + (revision "1"))
SVN revisions are monotonically increasing, so we don’t need the“revision” hack.
Toggle quote (16 lines)
> + (package> + (name "kbd-neo")> + (version (string-append "0.0.0-" revision "."> + (number->string svn-revision)))> + (source> + (origin> + (method svn-fetch)> + (uri (svn-reference> + ;; The SVN branch with the neo.map file.> + (url "https://svn.neo-layout.org/linux/console")> + (revision svn-revision)))> + (file-name (string-append name "-" version "-checkout"))> + (sha256> + (base32> + "169hmlwcwz5sp605i8q5ikckxwsj1n3isylrnynflp30gbv9zrwn"))))
Actually, you can get the neo.map file at the given revision 2476 with“url-fetch” from this URL: https://svn.neo-layout.org/!svn/bc/2476/linux/console/neo.mapThis would be better than to use the more complicated “svn-fetch”. Toggle quote (12 lines)
> + (build-system trivial-build-system)> + (arguments> + `(#:modules ((guix build utils))> + #:builder (begin> + (use-modules (guix build utils))> + (let ((out (string-append %output> + "/share/keymaps/i386/neo"))> + (source (assoc-ref %build-inputs "source")))> + (mkdir-p out)> + (copy-file (string-append source "/neo.map")> + (string-append out "/neo.map"))))))
If you’re using the plain URL above this would be simplified a little.
Toggle quote (3 lines)
> + (native-inputs> + `(("source" ,source)))
I don’t think this is needed
Toggle quote (3 lines)
> + (home-page "https://neo-layout.org")> + (license license:gpl3)
Please move the license field below “description” for consistency. Itis unfortunate that there are no license headers and that the license inthe COPYING file is explicitly declared to apply to all files in therepository.
Toggle quote (2 lines)
> + (synopsis "Neo2 console font")
This is not a font as far as I can see.
Toggle quote (4 lines)
> + (description> + "Neo2 console font intended to be installed with kbd."))))> +
Please use full sentences in the description.--RicardoGPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAChttps://elephly.net