mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user