Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bare mozilla nix overlay instead of flake one #6

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use flake
use nix
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Cargo.lock

/test-wasm/build
/test-wasm/node_modules
.direnv
91 changes: 0 additions & 91 deletions flake.lock

This file was deleted.

58 changes: 0 additions & 58 deletions flake.nix

This file was deleted.

20 changes: 20 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let
moz_overlay = import (builtins.fetchTarball "https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz");
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
in with nixpkgs;
stdenv.mkDerivation {
name = "rust-env";
buildInputs = [ nixpkgs.latest.rustChannels.stable.rust nodejs ];
# TODO
buildPhase = ''
cd test-wasm
export HOME=$TMP
npm install
npm run asbuild
cd ..
cargo test
mkdir $out
'';
dontInstall = true;
dontFixup = true;
}