Skip to content

Commit

Permalink
nix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Nov 4, 2024
1 parent 332ddfb commit abb4647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
in
{
packages = rec {
website = pkgs.callPackage ./derivation.nix {
website = pkgs.callPackage ./package.nix {
contentApi = "https://content.dd-ix.net";
};
website-static = pkgs.callPackage ./derivation.nix {
website-static = pkgs.callPackage ./package.nix {
contentApi = "https://content.dd-ix.net";
static = true;
};
Expand All @@ -26,7 +26,7 @@
}
) // {
overlays.default = _: prev: {
website = self.packages."${prev.system}".website;
inherit (self.packages."${prev.system}") website;
};

nixosModules = rec {
Expand Down
2 changes: 1 addition & 1 deletion derivation.nix → package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: {

pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-YWz+4SYhK/+jQFsmkFogV2jdWuqVGaDvDvGYr+P+s9E=";
hash = "sha256-o2GD/nPvZvS9S8RrLf8qFXwMMR1rxWQgxidgD4ZNqBU=";
};

nativeBuildInputs = [ nodejs pnpm.configHook ];
Expand Down

0 comments on commit abb4647

Please sign in to comment.