modules:
  - name: nim_amd64
    sources:
      - type: archive
        url: https://nim-lang.org/download/nim-1.4.2-linux_x64.tar.xz
        sha256: 55f22b2d6754721a8a1473e20bc3e49ffd9b073f0c14b53df40afb12e26d621e
        dest: nim_sdk_amd64
    buildsystem: simple
    cleanup:
      - "*"
    build-commands:
      - >
          if [ $(uname -m) == "x86_64" ]; then
            mkdir -p /app/lib/sdk/nim
            cp -r nim_sdk_amd64/* /app/lib/sdk/nim
            chmod -R 755 /app/lib/sdk/nim/bin;
          fi
  - name: nim_source_generic
    sources:
      - type: archive
        url: https://nim-lang.org/download/nim-1.4.2.tar.xz
        sha256: 03a47583777dd81380a3407aa6a788c9aa8a67df4821025770c9ac4186291161
        dest: nim_sdk
    buildsystem: simple
    cleanup:
      - "*"
    build-commands:
      - >
          if [ $(uname -m) != "x86_64" ]; then
            mkdir -p /app/lib/sdk/nim
            cd nim_sdk && sh build.sh && bin/nim c koch && ./koch boot -d:release && ./koch tools && cd ..
            cp -r nim_sdk/* /app/lib/sdk/nim
            chmod -R 755 /app/lib/sdk/nim/bin;
          fi
 here I am downloading a redundant SDK module (since I am using only one of them depending on the platform), if anyone experienced with flatpak wants the help me out here, it'd be great. I am looking for a way to describe a platform specific module in flatpak.
My next plan is to port it to windows, which honestly feels quite more challenging. I haven't used windows in a while and I don't know much about windows app installer frameworks.
Also if anyone knows about an HTML to PDF converter package please recommend me.
if anyone knows about an HTML to PDF converter package please recommend me
Pandoc is quite good as document format converter
if anyone knows about an HTML to PDF converter package please recommend me.
https://www.msweet.org/htmldoc/ is a bit old and long in the tooth, but if you're using basic HTML it gets plain but good output, and is in most distributions.