Update flood derivation

This commit is contained in:
2024-08-10 17:39:11 +02:00
parent 3872012060
commit 6b0374867b
3 changed files with 30 additions and 5 deletions
+1
View File
@@ -196,6 +196,7 @@ in {
profile.outputs = [
{
criteria = "eDP-1";
status = "enable";
}
];
}
+1 -1
View File
@@ -110,7 +110,7 @@
# Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = ["nvidia"];
virtualisation.docker.enableNvidia = true;
hardware.nvidia-container-toolkit.enable = true;
hardware.nvidia = {
# Modesetting is required.
+28 -4
View File
@@ -19,13 +19,37 @@
--add-flags "--ozone-platform=wayland"'';
in {
# Use my fork of flood to enable smart scripts.
flood = self.pkgs.buildNpmPackage {
flood = self.stdenv.mkDerivation (finalAttrs: {
pname = "flood";
version = "4.8.2";
version = "4.8.3-dirty";
src = flood;
npmDepsHash = "sha256-md76I7W5QQvfbOmk5ODssMtJAVOj8nvaJ2PakEZ8WUA=";
nativeBuildInputs = with self.pkgs; [
nodejs
pnpm.configHook
];
pnpmDeps = self.pkgs.pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-ez+n4oieARNKCeyCF6L9TJom90QFVZc0oEpkQx/GpWc=";
};
buildPhase = ''
runHook preBuild
pnpm build
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/{lib,bin}
cp -r {dist,node_modules} $out/lib
makeWrapper ${self.pkgs.nodejs} $out/bin/flood --add-flags $out/lib/dist/index.js
runHook postInstall
'';
dontStrip = true;
meta = with self.lib; {
description = "A modern web UI for various torrent clients with a Node.js backend and React frontend";
@@ -33,7 +57,7 @@ in {
license = licenses.gpl3Only;
maintainers = with maintainers; [winter];
};
};
});
river = super.river.overrideAttrs {
src = river-src;