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": {
"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",

View file

@ -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, ... }:

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