git.iko.soy/rowtype-yoga/purs-eval
on main help sign in
fix: npm published version not running
commit3f1a29567365000f57e6b2c9c54c55448c3a83c7 authorklarkc <walkerleite490@gmail.com> dateThu 11 Jul 2024, 14:53 (2 years ago) parentddaad01
2 files changed+10−3
.github/workflows/release.yml+2−2 flake.nix+8−1
.github/workflows/release.yml+2−2
@@ -25,9 +25,9 @@ jobs:
2525 name: klarkc
2626 authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2727 - run: |
28− nix build
28+ nix build .#npm
2929 mkdir -p dist
30− cp result/bin/purs-eval dist
30+ cp result dist/purs-eval
3131 if: ${{ steps.release.outputs.release_created }}
3232 - uses: actions/setup-node@v4
3333 if: ${{ steps.release.outputs.release_created }}
flake.nix+8−1
@@ -71,9 +71,16 @@
7171 };
7272
7373 packages =
74− with ps;
7574 {
7675 default = app { inherit name; };
76+ # npm version does not publish a nix-store path
77+ npm = pkgs.runCommand
78+ "purs-eval-npm"
79+ {}
80+ ''
81+ echo "#!/usr/bin/env node" > $out
82+ tail -n +2 ${packages.default}/bin/purs-eval >> $out
83+ '';
7784 };
7885
7986 checks.test = test.check { };