Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/r-k-b/nix-elm-go

Makes lucamug/elm-go available as a Nix Flake, rather than an npm package.
https://github.com/r-k-b/nix-elm-go

Last synced: 26 days ago
JSON representation

Makes lucamug/elm-go available as a Nix Flake, rather than an npm package.

Awesome Lists containing this project

README

        

# why?

I wanted to use `lucamug/elm-go` from source through Nix, instead of just the
final tar file through npm.

# how?

```shell
$ nix run github:r-k-b/nix-elm-go
```

(Must have flakes enabled.)

Or, add it to your Flake inputs like:

```nix
inputs = {
elm-go.url = "github:r-k-b/nix-elm-go";
};
```

and

```nix
devShell = pkgs.mkShell {
name = "your-devshell";
buildInputs = with pkgs; [
elmPackages.elm
inputs.nix-elm-go.packages.x86_64-linux.elm-go
];
};
```

Note, you'll need to provide your own Elm package.

# updating

run `./bin/update`, then commit the changed files.

Tip: with direnv enabled, `update` is already on your path.

Tip: if you're hacking on flake inputs like `path:node2nix` but the changes
aren't coming thru to `nix run` / `nix build`, it's probably because the cache
isn't being invalidated.
Try `nix build .# --recreate-lock-file --refresh`.