diff --git a/flake.lock b/flake.lock index c24b9db..ef7023b 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1699099776, - "narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", + "lastModified": 1700390070, + "narHash": "sha256-de9KYi8rSJpqvBfNwscWdalIJXPo8NjdIZcEJum1mH0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", + "rev": "e4ad989506ec7d71f7302cc3067abd82730a4beb", "type": "github" }, "original": { @@ -39,7 +39,8 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs", "wallpaper-engine-kde-plugin": "wallpaper-engine-kde-plugin", - "yorha-grub-theme": "yorha-grub-theme" + "yorha-grub-theme": "yorha-grub-theme", + "yorha-sound-theme": "yorha-sound-theme" } }, "systems": { @@ -60,11 +61,11 @@ "wallpaper-engine-kde-plugin": { "flake": false, "locked": { - "lastModified": 1697944637, - "narHash": "sha256-rrBsQy+vG22IiaNDHYbkNPPbExQPQYLCaXy+KMHDmss=", + "lastModified": 1700316842, + "narHash": "sha256-dhdOySkqqWLGUio+apf+y+PdzgD1bZtmIGfXFSjNbK4=", "ref": "refs/heads/main", - "rev": "08dad16f5cbf0de423b85edda313597c273a887e", - "revCount": 559, + "rev": "fd4653daad61280b4983b2646599c68ed93f35e1", + "revCount": 562, "submodules": true, "type": "git", "url": "https://github.com/catsout/wallpaper-engine-kde-plugin" @@ -90,6 +91,22 @@ "repo": "yorha-grub-theme", "type": "github" } + }, + "yorha-sound-theme": { + "flake": false, + "locked": { + "lastModified": 1700606560, + "narHash": "sha256-TiglZP8Je+SlL/5mrV4bugp0t0z2Zs2pKLRehlgR8y0=", + "ref": "refs/heads/main", + "rev": "5ab3fff4c5c62c08ebdcf162817bfaaaeb57d559", + "revCount": 2, + "type": "git", + "url": "https://forgejo.invariantspace.com/macronova/yorha-sound-theme.git" + }, + "original": { + "type": "git", + "url": "https://forgejo.invariantspace.com/macronova/yorha-sound-theme.git" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index d22db89..15ef4e5 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,10 @@ flake = false; url = "github:OliveThePuffin/yorha-grub-theme"; }; + yorha-sound-theme = { + flake = false; + url = "git+https://forgejo.invariantspace.com/macronova/yorha-sound-theme.git"; + }; }; outputs = inputs@{ self, flake-utils, nixpkgs, ... }: diff --git a/packages/wallpaper-engine-kde-plugin.nix b/packages/wallpaper-engine-kde-plugin.nix index e35ac03..816f020 100644 --- a/packages/wallpaper-engine-kde-plugin.nix +++ b/packages/wallpaper-engine-kde-plugin.nix @@ -50,11 +50,11 @@ pkgs.plasma5Packages.callPackage src = inputs.${name}; } ) -(with pkgs; { - inherit (gst_all_1) gst-libav; - inherit (python3Packages) websockets; - python-ws = python3.withPackages (ps: with ps; [ - websockets - ]); -}) + (with pkgs; { + inherit (gst_all_1) gst-libav; + inherit (python3Packages) websockets; + python-ws = python3.withPackages (ps: with ps; [ + websockets + ]); + }) diff --git a/packages/yorha-sound-theme.nix b/packages/yorha-sound-theme.nix new file mode 100644 index 0000000..fcd96e3 --- /dev/null +++ b/packages/yorha-sound-theme.nix @@ -0,0 +1,23 @@ +{ inputs, name, pkgs }: + +pkgs.stdenv.mkDerivation { + inherit name; + src = inputs.${name}; + installPhase = '' + runHook preInstall + sdir=$out/share/sounds + mkdir -p $sdir + ls -al + cp sounds/core_10.wav $sdir/YoRHa-message.wav + cp sounds/core_25.wav $sdir/YoRHa-connect.wav + cp sounds/core_32.wav $sdir/YoRHa-error.wav + cp sounds/core_37.wav $sdir/YoRHa-login.wav + cp sounds/core_55.wav $sdir/YoRHa-trash.wav + cp sounds/core_56.wav $sdir/YoRHa-critical.wav + cp sounds/core_64.wav $sdir/YoRHa-question.wav + cp sounds/core_70.wav $sdir/YoRHa-detach.wav + cp sounds/core_71.wav $sdir/YoRHa-warning.wav + cp sounds/core_96.wav $sdir/YoRHa-logout.wav + runHook postInstall + ''; +}