Add overlay and install studio-link from it

This commit is contained in:
fleaz 2023-04-25 23:50:04 +02:00
parent fe5b72e22a
commit 13727d95cf
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
3 changed files with 52 additions and 0 deletions

View file

@ -29,6 +29,10 @@ in
modules/kanshi.nix
];
nixpkgs.overlays = [
(import ../overlay/default.nix)
];
home.stateVersion = "21.11";
gtk = {
@ -111,11 +115,15 @@ in
insomnia
mumble
inkscape
guvcview
# for coc
nodejs
rnix-lsp
# from my overlay
studio-link
] ++ lib.optionals (config.networking.hostName == "jimbo") [
networkmanager

4
overlay/default.nix Normal file
View file

@ -0,0 +1,4 @@
self: super: {
studio-link = super.callPackage ./studio-link.nix { };
}

40
overlay/studio-link.nix Normal file
View file

@ -0,0 +1,40 @@
{ stdenv
, lib
, fetchurl
, pulseaudio
, zlib
, alsaLib
, autoPatchelfHook
}:
stdenv.mkDerivation rec {
pname = "studio-link";
version = "21.07.0";
src = fetchurl {
url = "https://download.studio.link/releases/v${version}-stable/linux/studio-link-standalone-v${version}.tar.gz";
hash = "sha256-4CkijAlenhht8tyk3nBULaBPE0GBf6DVII699/RmmWI=";
};
sourceRoot = ".";
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
alsaLib
pulseaudio
zlib
];
installPhase = ''
install -D -m755 studio-link-standalone-v* $out/bin/studio-link
'';
meta = with lib; {
homepage = "https://studio-link.com";
description = "VoIP Thing";
platforms = platforms.linux;
};
}