Skip to content

Commit

Permalink
Merge pull request #244454 from jnsgruk/homepage-0.6.23
Browse files Browse the repository at this point in the history
  • Loading branch information
RaitoBezarius authored Jul 24, 2023
2 parents f59913b + dd0b6dc commit 503101a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
25 changes: 13 additions & 12 deletions pkgs/servers/homepage-dashboard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
, fetchFromGitHub
, nodePackages
, python3
, stdenv
, cctools
, IOKit
, lib
, fetchpatch
, makeBinaryWrapper
Expand All @@ -10,24 +13,16 @@

buildNpmPackage rec {
pname = "homepage-dashboard";
version = "0.6.21";
version = "0.6.23";

src = fetchFromGitHub {
owner = "benphelps";
repo = "homepage";
rev = "v${version}";
hash = "sha256-kjxA02hJj/GAQ0fM1xTtXAnZSQgVyE+EMRrXis1Vr+o=";
hash = "sha256-Nr090221lTW7luuzh/URdDPByILnjMChyZcV2+AUG3o=";
};

npmDepsHash = "sha256-O6SQYx5vxscMsbWv0ynUYqdUkOp/nMtdvlZ/Mp95sBY=";

patches = [
(fetchpatch {
name = "env-config-dir.patch";
url = "https://github.com/benphelps/homepage/commit/ca396ce96bce52f6c06a321f292aa94a66ceeb97.patch";
hash = "sha256-eNnW/ce4ytoKR6jH1Ztc4UTWOmL0uGRdY6nYBIVYM6k=";
})
];
npmDepsHash = "sha256-l6kVmKXAQMqpzu/GTrz92WeDorLhunfcUrbMVfUwR9U=";

preBuild = ''
mkdir -p config
Expand All @@ -39,8 +34,14 @@ buildNpmPackage rec {
patchShebangs .next/standalone/server.js
'';

nativeBuildInputs = lib.optionals stdenv.isDarwin [
cctools
];

buildInputs = [
nodePackages.node-gyp-build
] ++ lib.optionals stdenv.isDarwin [
IOKit
];

env.PYTHON = "${python3}/bin/python";
Expand Down Expand Up @@ -68,7 +69,7 @@ buildNpmPackage rec {
doDist = false;

passthru.tests = {
inherit (nixosTests) homepage;
inherit (nixosTests) homepage-dashboard;
};

meta = {
Expand Down
5 changes: 4 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5455,7 +5455,10 @@ with pkgs;

home-manager = callPackage ../tools/package-management/home-manager { };

homepage-dashboard = callPackage ../servers/homepage-dashboard { };
homepage-dashboard = callPackage ../servers/homepage-dashboard {
inherit (darwin) cctools;
inherit (darwin.apple_sdk.frameworks) IOKit;
};

hostsblock = callPackage ../tools/misc/hostsblock { };

Expand Down

0 comments on commit 503101a

Please sign in to comment.