This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
874d2c6
commit ea3befe
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
description = "Web interface for Mantis Faucet"; | ||
|
||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
let | ||
name = "mantis-faucet-web"; | ||
systems = [ "x86_64-linux" "x86_64-darwin" ]; | ||
overlay = final: prev: { | ||
${name}.defaultPackage = final.mkYarnPackage { | ||
src = ./.; | ||
|
||
FAUCET_NODE_URL = "https://mantis-testnet-mantis-faucet.mantis.ws"; | ||
|
||
doCheck = false; | ||
distPhase = "true"; | ||
|
||
buildPhase = '' | ||
export HOME="$NIX_BUILD_TOP" | ||
yarn run build | ||
''; | ||
|
||
installPhase = '' | ||
mv deps/$pname/dist $out | ||
''; | ||
}; | ||
}; | ||
|
||
simpleFlake = flake-utils.lib.simpleFlake { | ||
inherit name systems overlay self nixpkgs; | ||
}; | ||
in simpleFlake // { | ||
hydraJobs = self.packages; | ||
inherit overlay; | ||
}; | ||
} |