{"id":14128238,"url":"https://github.com/jmackie/staskell","last_synced_at":"2026-01-17T02:51:35.803Z","repository":{"id":42185164,"uuid":"305654803","full_name":"jmackie/staskell","owner":"jmackie","description":"👷‍♀️ Nix helpers for building static Haskell executables","archived":false,"fork":false,"pushed_at":"2023-03-06T17:56:59.000Z","size":19,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-16T16:22:21.057Z","etag":null,"topics":["haskell","nix","static-link-binary"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmackie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-20T09:21:24.000Z","updated_at":"2020-12-04T22:03:18.000Z","dependencies_parsed_at":"2024-05-01T23:55:03.694Z","dependency_job_id":"f479a7b2-1cd4-450d-8cda-a373b7bf36d7","html_url":"https://github.com/jmackie/staskell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fstaskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fstaskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fstaskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmackie%2Fstaskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmackie","download_url":"https://codeload.github.com/jmackie/staskell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228571844,"owners_count":17938772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["haskell","nix","static-link-binary"],"created_at":"2024-08-15T16:01:25.004Z","updated_at":"2026-01-17T02:51:35.770Z","avatar_url":"https://github.com/jmackie.png","language":"Nix","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"# `staskell`\n\n![.github/workflows/ci.yaml](https://github.com/jmackie/staskell/workflows/.github/workflows/ci.yaml/badge.svg)\n[![Cachix Cache](https://img.shields.io/badge/cachix-staskell-blue.svg)](https://staskell.cachix.org)\n\nQuickly and easily write static Haskell executables with help from [Nix](https://nixos.org/).\n\nEssentially just some high-level helpers on top of [`static-haskell-nix`](https://github.com/nh2/static-haskell-nix)\nand a ready baked [cachix](https://staskell.cachix.org) so you can get going straight away.\n\nCurrently only GHC 8.8.3 is supported (open an issue if you want other versions).\n\n## How to use it\n\nFirst write your Haskell thing (i.e. `Main.hs`, `haskell-thing.cabal`, etc).\n\nThen add a `default.nix`:\n\n```nix\nlet\n  staskell = import (builtins.fetchFromGitHub {\n    owner = \"jmackie\";\n    repo = \"staskell\";\n    rev = \"PICK-ONE\";\n    sha256 = \"FILL-THIS-IN\";\n  });\nin\nstaskell.ghc883.buildStaticPackage {\n  name = \"haskell-thing\";\n  # Might want to `gitignore.nix` this...\n  # https://github.com/hercules-ci/gitignore.nix\n  src = ./.;\n}\n```\n\nUse the staskell cache:\n\n```bash\n$ cachix use staskell\n```\n\nAnd finally `nix-build` your static executable 🎉\n\n(See the [examples](https://github.com/jmackie/staskell/tree/master/examples/) folder for more)\n\n## CI example\n\nCommit a [workflow](https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/introduction-to-github-actions) like the following:\n\n```yaml\nname: CI\non: push\njobs:\n  build-static-exe:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@v2\n\n      - name: Install Nix\n        uses: cachix/install-nix-action@v8\n\n      - name: Setup Cachix\n        run: |\n          nix-env -iA cachix -f https://cachix.org/api/v1/install\n          cachix use staskell\n\n      - name: Build\n        run: nix-build\n\n      # Might want to also create an artifact from ./result/bin/*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmackie%2Fstaskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmackie%2Fstaskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmackie%2Fstaskell/lists"}