Add overlay and install studio-link from it
This commit is contained in:
parent
fe5b72e22a
commit
13727d95cf
|
@ -29,6 +29,10 @@ in
|
||||||
modules/kanshi.nix
|
modules/kanshi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import ../overlay/default.nix)
|
||||||
|
];
|
||||||
|
|
||||||
home.stateVersion = "21.11";
|
home.stateVersion = "21.11";
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
@ -111,11 +115,15 @@ in
|
||||||
insomnia
|
insomnia
|
||||||
mumble
|
mumble
|
||||||
inkscape
|
inkscape
|
||||||
|
guvcview
|
||||||
|
|
||||||
# for coc
|
# for coc
|
||||||
nodejs
|
nodejs
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
|
|
||||||
|
# from my overlay
|
||||||
|
studio-link
|
||||||
|
|
||||||
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
||||||
networkmanager
|
networkmanager
|
||||||
|
|
||||||
|
|
4
overlay/default.nix
Normal file
4
overlay/default.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
self: super: {
|
||||||
|
studio-link = super.callPackage ./studio-link.nix { };
|
||||||
|
|
||||||
|
}
|
40
overlay/studio-link.nix
Normal file
40
overlay/studio-link.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue