feat(users/azahi/pkgs): add bruh
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>
This commit is contained in:
parent
8edfb085f5
commit
c3645b590e
1 changed files with 42 additions and 0 deletions
42
users/azahi/pkgs/bruh/default.nix
Normal file
42
users/azahi/pkgs/bruh/default.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue