chore(nix/darwin): Add Vesktop
This commit is contained in:
parent
d4e9969eec
commit
5624c40c14
5 changed files with 71 additions and 29 deletions
18
.config/nix/lib/darwin/mkApp.nix
Normal file
18
.config/nix/lib/darwin/mkApp.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
# REF: https://github.com/bandithedoge/nixpkgs-firefox-darwin/blob/ceaca2359e5371ccef3f92a36baf7c438b354afb/overlay.nix
|
||||
{ stdenv, undmg, pname, version, sourceRoot ? ".", appFileName, src, meta, nativeBuildInputs ? [ undmg ] }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname version;
|
||||
|
||||
inherit src nativeBuildInputs;
|
||||
|
||||
inherit sourceRoot;
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/Applications
|
||||
cp -R ${appFileName} "$out/Applications/"
|
||||
'';
|
||||
|
||||
inherit meta;
|
||||
}
|
|
@ -2,9 +2,14 @@
|
|||
final: prev:
|
||||
|
||||
let
|
||||
package = version:
|
||||
final.stdenv.mkDerivation rec {
|
||||
mkApp = import ../../lib/darwin/mkApp.nix;
|
||||
version = "1.5.0";
|
||||
in {
|
||||
heliport = mkApp {
|
||||
inherit (final) stdenv undmg;
|
||||
|
||||
pname = "HeliPort";
|
||||
appFileName = "HeliPort.app";
|
||||
inherit version;
|
||||
|
||||
src = final.fetchurl {
|
||||
|
@ -12,16 +17,6 @@ let
|
|||
sha256 = "49cbe7abea742a3c662a836f14c05b79b3e6e6577c897b57101f5bd0a086eec8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ final.undmg ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/Applications
|
||||
cp -R HeliPort.app "$out/Applications/"
|
||||
'';
|
||||
|
||||
meta = with final.lib; {
|
||||
description = "Intel WiFi Client for itlwm";
|
||||
homepage = "https://github.com/OpenIntelWireless/HeliPort";
|
||||
|
@ -30,6 +25,4 @@ let
|
|||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
};
|
||||
in {
|
||||
heliport = package "1.5.0";
|
||||
}
|
||||
|
|
28
.config/nix/overlays/darwin/vesktop.nix
Normal file
28
.config/nix/overlays/darwin/vesktop.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
# REF: https://github.com/bandithedoge/nixpkgs-firefox-darwin/blob/ceaca2359e5371ccef3f92a36baf7c438b354afb/overlay.nix
|
||||
final: prev:
|
||||
|
||||
let
|
||||
mkApp = import ../../lib/darwin/mkApp.nix;
|
||||
version = "1.5.2";
|
||||
in {
|
||||
vesktop = mkApp {
|
||||
inherit (final) stdenv undmg;
|
||||
|
||||
pname = "Vesktop";
|
||||
appFileName = "Vesktop*.app";
|
||||
inherit version;
|
||||
|
||||
src = final.fetchurl {
|
||||
url = "https://github.com/Vencord/Vesktop/releases/download/v${version}/Vesktop-${version}.dmg";
|
||||
hash = "sha256-/u2G5v98+FAIfg7UMq5vUFmYO2Tj5ZiAaLrdqUdOMAo";
|
||||
};
|
||||
|
||||
meta = with final.lib; {
|
||||
description = "An alternate client for Discord with Vencord built-in";
|
||||
homepage = "https://github.com/Vencord/Vesktop";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.darwin;
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -57,6 +57,7 @@ in {
|
|||
pkgs.casks.zotero
|
||||
# pkgs.casks.lulu # Doesn't work, it needs to be installed on /Applications/
|
||||
# pkgs.heliport # FIXME: https://github.com/matthewbauer/undmg/issues/2
|
||||
# pkgs.vesktop # FIXME: "only HFS file systems are supported."
|
||||
|
||||
pkgs.lf
|
||||
pkgs.yazi # lf replacement, need further testing
|
||||
|
|
|
@ -24,6 +24,7 @@ in
|
|||
inputs.firefox-darwin.overlay
|
||||
(mkBrew { inherit system brew-api; nixpkgs = nixpkgs-stable; })
|
||||
(import ../../overlays/darwin/heliport.nix)
|
||||
(import ../../overlays/darwin/vesktop.nix)
|
||||
];
|
||||
}
|
||||
) pkgs pkgs-unstable;
|
||||
|
@ -49,6 +50,7 @@ in
|
|||
extraOverlays = [
|
||||
inputs.firefox-darwin.overlay
|
||||
(mkBrew { inherit system brew-api; nixpkgs = nixpkgs-stable; })
|
||||
(import ../../overlays/darwin/vesktop.nix)
|
||||
];
|
||||
}
|
||||
) pkgs pkgs-unstable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue