rowtype-yoga / rowtype-yoga/typeapp

remove compiled output from the repo

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted todo
Dominant language
Nix
Stars
5
Forks
0
Avg merge
4h 36m
Merged PRs (30d)
1

Description

https://github.com/rowtype-yoga/typeapp/blob/540c06bd8f2913c9ea56dfcad14f7d7444c3a088/flake.nix#L58


{
  inputs = {
    nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
    utils.url = github:ursi/flake-utils;
    hooks.url = github:cachix/git-hooks.nix;
    purs-nix.url = github:purs-nix/purs-nix;
    ps-tools.follows = "purs-nix/ps-tools";
    option = {
      url = "github:jmatsushita/purescript-option/8d0984"; 
      flake = false;
    };
  };

  outputs = { self, utils, ... }@inputs:
    utils.apply-systems
      { inherit inputs; }
      ({ pkgs, system, ... }@ctx:
        let
          # frontend
          inherit (pkgs) nodejs;
          purs-nix = inputs.purs-nix { inherit system; };
          inherit (ctx.ps-tools.for-0_15) purescript purs-tidy purescript-language-server;
          # TODO use option from official index
          option = purs-nix.build { 
            name = "option";
            src.path = inputs.option;
            info.dependencies = [ "aff" "argonaut-codecs" "argonaut-core"    "codec" "codec-argonaut" "datetime" "effect" "either" "enums" "foldable-traversable" "foreign" "foreign-object" "functors" "identity" "lists" "maybe" "prelude" "record" "simple-json" "spec" "transformers" "tuples" "unsafe-coerce"];
          };
          ps =
            purs-nix.purs
              {
                dir = ./.;
                dependencies =
                  with purs-nix.ps-pkgs;
                  [
                    prelude
                    option
                  ];
                inherit purescript nodejs;
              };
          # helpers
          hooks = inputs.hooks.lib.${system}.run {
            src = ./src;
            hooks = {
              # hook for frontend
              purs-tidy = {
                enable = true;
                package = purs-tidy;
              };
            };
          };
        in 
         {
          packages.default = ps.bundle { };

          devShells.default = pkgs.mkShell {
            packages = with pkgs; [
              # TODO remove compiled output from the repo
              (ps.command { })
              purescript-language-server
            ];
            shellHook = ''
              ${hooks.shellHook}
              shopt -s expand_aliases
              alias log_='printf "\033[1;32m%s\033[0m\n" "$@"'
              alias info_='printf "\033[1;34m[INFO] %s\033[0m\n" "$@"'
              alias warn_='printf "\033[1;33m[WARN] %s\033[0m\n" "$@"'

              log_ "Welcome to TypeApp shell."
              info_ "Available commands: purs-nix"
            '';
          };
         });
  nixConfig = {
    accept-flake-config = true;
    extra-experimental-features = "nix-command flakes";
  };
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in flake.nix around line 58 and inspect the development-shell definition and its TODO about compiled output. Identify the tracked generated artifacts related to this setup, remove them from the repository, and verify that the project still has the intended development-shell configuration.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.