Skip to content

Commit

Permalink
updated flake (wasm-tooling deps)
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Jun 24, 2023
1 parent 8f25d23 commit 33e37e2
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 52 deletions.
11 changes: 0 additions & 11 deletions configuration_git

This file was deleted.

136 changes: 111 additions & 25 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 12 additions & 16 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
{
description = "webapp to compress jpeg in your browser";
inputs.wasm-tooling.url = github:rambip/wasm-tooling;
inputs.flake-utils.url = github:numtide/flake-utils;

outputs = {self, nixpkgs, wasm-tooling}: {
defaultPackage.x86_64-linux =
let pkgs = import nixpkgs {system = "x86_64-linux";};
tooling = pkgs.callPackage wasm-tooling {};
outputs = {self, nixpkgs, flake-utils, wasm-tooling}: with flake-utils.lib;
eachSystem [system.x86_64-linux system.x86_64-darwin] (system:
let rust-tooling = wasm-tooling.lib."${system}".rust;
in
tooling.rust.buildWithTrunk {
src = ./.;
fixRelativeUrl = true;
};
devShell.x86_64-linux =
let pkgs = import nixpkgs {system = "x86_64-linux";};
tooling = pkgs.callPackage wasm-tooling {};
in
tooling.rust.devShell {
src = ./.;
} ;
};
{
packages.default = rust-tooling.buildWithTrunk {
src = ./.;
fixRelativeUrl = true;
};
devShells.default = rust-tooling.makeDevShell {src=./.;};
}
);
}

0 comments on commit 33e37e2

Please sign in to comment.