Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/r-k-b/nix-elm-go
- Owner: r-k-b
- Created: 2023-11-25T07:05:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T19:24:17.000Z (about 2 months ago)
- Last Synced: 2024-10-29T21:35:38.782Z (about 2 months ago)
- Language: Nix
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.