clean flake a little
This commit is contained in:
parent
76bea24755
commit
d2fc0a8c63
1 changed files with 5 additions and 5 deletions
10
flake.nix
10
flake.nix
|
@ -9,22 +9,22 @@
|
|||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
package = builtins.fromJSON (builtins.readFile ./package.json);
|
||||
in
|
||||
rec {
|
||||
packages = flake-utils.lib.flattenTree {
|
||||
reidlab-online = pkgs.buildNpmPackage {
|
||||
pname = "reidlab-online";
|
||||
pname = package.name;
|
||||
inherit (package) version;
|
||||
|
||||
# uncomment this and let the build fail, then get the current hash
|
||||
# very scuffed but endorsed!
|
||||
#npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||
npmDepsHash = "sha256-aPRFARC1WJsH1NIrm9OmBv/bH9ME1K4apfWqbA+VPf4=";
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
mv ./dist/* $out/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue