clean flake a little

This commit is contained in:
Reid 2024-07-10 00:33:59 -07:00
parent 76bea24755
commit d2fc0a8c63
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD

View file

@ -9,13 +9,15 @@
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = import nixpkgs {
inherit system;
};
package = builtins.fromJSON (builtins.readFile ./package.json); package = builtins.fromJSON (builtins.readFile ./package.json);
in in
rec { rec {
packages = flake-utils.lib.flattenTree { packages = flake-utils.lib.flattenTree {
reidlab-online = pkgs.buildNpmPackage { reidlab-online = pkgs.buildNpmPackage {
pname = "reidlab-online"; pname = package.name;
inherit (package) version; inherit (package) version;
# uncomment this and let the build fail, then get the current hash # uncomment this and let the build fail, then get the current hash
@ -23,8 +25,6 @@
#npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; #npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
npmDepsHash = "sha256-aPRFARC1WJsH1NIrm9OmBv/bH9ME1K4apfWqbA+VPf4="; npmDepsHash = "sha256-aPRFARC1WJsH1NIrm9OmBv/bH9ME1K4apfWqbA+VPf4=";
doCheck = false;
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
mv ./dist/* $out/ mv ./dist/* $out/