{"id":20969991,"url":"https://github.com/aycanirican/nixit","last_synced_at":"2026-05-13T20:32:48.338Z","repository":{"id":137706007,"uuid":"194030581","full_name":"aycanirican/nixit","owner":"aycanirican","description":"Build my haskell project using nix","archived":false,"fork":false,"pushed_at":"2019-12-01T06:53:57.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T04:19:28.611Z","etag":null,"topics":["cabal","cabal2nix","haskell","hpack","nix","stack"],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aycanirican.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-06-27T05:47:37.000Z","updated_at":"2021-02-20T14:43:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"e1ec22b2-d850-44df-ab12-e1d62b10fe1e","html_url":"https://github.com/aycanirican/nixit","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/aycanirican%2Fnixit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aycanirican%2Fnixit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aycanirican%2Fnixit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aycanirican%2Fnixit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aycanirican","download_url":"https://codeload.github.com/aycanirican/nixit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243365640,"owners_count":20279215,"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":["cabal","cabal2nix","haskell","hpack","nix","stack"],"created_at":"2024-11-19T03:56:03.399Z","updated_at":"2026-05-13T20:32:43.305Z","avatar_url":"https://github.com/aycanirican.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nixit\n\nBuild my haskell executable using nix.\n\n## Usage\n\n  - You are in your project's directory\n    ```\n      cd $TMP\n      mkdir project1; cd project1\n    ```\n    \n  - You have a proper `Main.hs` file like this:\n    ```\n      module Main where\n      \n      main :: IO ()\n      main = print \"5 more minutes...Done.\"\n    ```\n  - Optionally you write all haskell dependencies (one for each line)\n    in a file `.nixit.deps` like:\n    ```\n      aeson\n      servant-client\n      lens\n    ```\n    \nThen you can have your executable with:\n```\nnix build -f https://github.com/aycanirican/nixit/archive/master.tar.gz \\\n  --arg    src  \"$PWD\" \\\n  --argstr deps \"$(cat .nixit.deps | xargs)\"\n```\n\nAnd also you can have a ghci session with:\n```\n  nix-shell -p \"pkgs.haskellPackages.ghcWithPackages (p: with p; [ $(cat .nixit.deps | xargs) ])\" \\\n    --command \"ghci Main.hs\"\n```\n\nOr if you want to just execute ghcid and watch it recompiling your project:\n```\nnix-shell -p \"pkgs.haskellPackages.ghcWithPackages (p: with p; [ $(cat .nixit.deps | xargs) ])\" \\\n  -p haskellPackages.ghcid \\\n  --command \"ghcid --command \\\"ghci Main.hs\\\"\"\n```\n\nOr you may want to stick on a release:\n```\nNIX_PATH=nixpkgs=https://nixos.org/channels/nixos-19.09/nixexprs.tar.xz \\\n  nix-shell -p \"pkgs.haskellPackages.ghcWithPackages (p: with p; [ $(cat .nixit.deps | xargs) ])\" --command \"ghci Main.hs\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faycanirican%2Fnixit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faycanirican%2Fnixit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faycanirican%2Fnixit/lists"}