about summary refs log tree commit diff
path: root/users/azahi/pkgs/bruh/default.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2024-08-27T12·05+0300
committerclbot <clbot@tvl.fyi>2024-08-27T12·58+0000
commitc3645b590eec3c44da2f58e14307506f9e840813 (patch)
treeb65453489aa6ec3de533828750b6ed89abcd0300 /users/azahi/pkgs/bruh/default.nix
parent8edfb085f53e75a0183d7adca13704ba72f383d0 (diff)
feat(users/azahi/pkgs): add bruh r/8596
Just testing out depot workflow by adding random stuff.

Change-Id: I8acafe73b86d1936b64f8a4dd084c21c04e305bf
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12358
Tested-by: BuildkiteCI
Autosubmit: azahi <azat@bahawi.net>
Reviewed-by: azahi <azat@bahawi.net>
Diffstat (limited to 'users/azahi/pkgs/bruh/default.nix')
-rw-r--r--users/azahi/pkgs/bruh/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/users/azahi/pkgs/bruh/default.nix b/users/azahi/pkgs/bruh/default.nix
new file mode 100644
index 000000000000..5eecf94b6203
--- /dev/null
+++ b/users/azahi/pkgs/bruh/default.nix
@@ -0,0 +1,42 @@
+{ pkgs
+, lib
+, ...
+}:
+
+let
+  inherit (pkgs)
+    alsa-utils
+    fetchFromGitHub
+    stdenv
+    ;
+in
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "bruh";
+  version = "2.1";
+
+  src =
+    with finalAttrs;
+    fetchFromGitHub {
+      owner = "kejpies";
+      repo = pname;
+      rev = version;
+      hash = "sha256-Uw6Qes0IZkkfBchFnvnX9l1ZG5T5pyExmV7yUJLPOJ0=";
+    };
+
+  postPatch = ''
+    substituteInPlace bruh.c \
+      --replace-fail "aplay" "${alsa-utils}/bin/aplay"
+  '';
+
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  meta = with lib; {
+    description = "Bruh sound, but as a program";
+    inherit (finalAttrs.src.meta) homepage;
+    license = licenses.gpl3Only;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ azahi ];
+    mainProgram = "bruh";
+  };
+})