mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
purescript.tests.minimal-module: use lib.sources.sourceByGlobs
Filter src to the .purs and .js files actually compiled, dropping default.nix from the closure.
This commit is contained in:
parent
1b47667776
commit
df1b67fdfd
1 changed files with 7 additions and 1 deletions
|
|
@ -1,11 +1,17 @@
|
|||
{
|
||||
lib,
|
||||
runCommand,
|
||||
purescript,
|
||||
nodejs,
|
||||
}:
|
||||
|
||||
runCommand "purescript-test-minimal-module" { } ''
|
||||
${purescript}/bin/purs compile -o ./output ${./.}/Main.purs
|
||||
${purescript}/bin/purs compile -o ./output ${
|
||||
lib.sources.sourceByGlobs ./. [
|
||||
"*.purs"
|
||||
"*.js"
|
||||
]
|
||||
}/Main.purs
|
||||
|
||||
echo 'import {main} from "./output/Main/index.js"; main()' > node.mjs
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue