Add sounds

This commit is contained in:
Invariantspace 2023-11-22 20:26:55 -08:00
parent f528a8f4f0
commit 10cd771ad2
4 changed files with 59 additions and 15 deletions

33
flake.lock generated
View file

@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1699099776, "lastModified": 1700390070,
"narHash": "sha256-X09iKJ27mGsGambGfkKzqvw5esP1L/Rf8H3u3fCqIiU=", "narHash": "sha256-de9KYi8rSJpqvBfNwscWdalIJXPo8NjdIZcEJum1mH0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "85f1ba3e51676fa8cc604a3d863d729026a6b8eb", "rev": "e4ad989506ec7d71f7302cc3067abd82730a4beb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -39,7 +39,8 @@
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"wallpaper-engine-kde-plugin": "wallpaper-engine-kde-plugin", "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": { "systems": {
@ -60,11 +61,11 @@
"wallpaper-engine-kde-plugin": { "wallpaper-engine-kde-plugin": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1697944637, "lastModified": 1700316842,
"narHash": "sha256-rrBsQy+vG22IiaNDHYbkNPPbExQPQYLCaXy+KMHDmss=", "narHash": "sha256-dhdOySkqqWLGUio+apf+y+PdzgD1bZtmIGfXFSjNbK4=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "08dad16f5cbf0de423b85edda313597c273a887e", "rev": "fd4653daad61280b4983b2646599c68ed93f35e1",
"revCount": 559, "revCount": 562,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/catsout/wallpaper-engine-kde-plugin" "url": "https://github.com/catsout/wallpaper-engine-kde-plugin"
@ -90,6 +91,22 @@
"repo": "yorha-grub-theme", "repo": "yorha-grub-theme",
"type": "github" "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", "root": "root",

View file

@ -12,6 +12,10 @@
flake = false; flake = false;
url = "github:OliveThePuffin/yorha-grub-theme"; 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, ... }: outputs = inputs@{ self, flake-utils, nixpkgs, ... }:

View file

@ -50,11 +50,11 @@ pkgs.plasma5Packages.callPackage
src = inputs.${name}; src = inputs.${name};
} }
) )
(with pkgs; { (with pkgs; {
inherit (gst_all_1) gst-libav; inherit (gst_all_1) gst-libav;
inherit (python3Packages) websockets; inherit (python3Packages) websockets;
python-ws = python3.withPackages (ps: with ps; [ python-ws = python3.withPackages (ps: with ps; [
websockets websockets
]); ]);
}) })

View file

@ -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
'';
}