mirror of
https://github.com/zoriya/flake.git
synced 2026-06-06 12:02:58 +00:00
Update flood derivation
This commit is contained in:
@@ -196,6 +196,7 @@ in {
|
||||
profile.outputs = [
|
||||
{
|
||||
criteria = "eDP-1";
|
||||
status = "enable";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user