Merge pull request #172904 from muscaln/headset-init

headset: init at 4.0.0
This commit is contained in:
Jonas Heinrich 2022-09-05 09:27:50 +02:00 committed by GitHub
commit c6cd5022d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, stdenv
, fetchurl
, dpkg
, makeWrapper
, electron
}:
stdenv.mkDerivation rec {
pname = "headset";
version = "4.0.0";
src = fetchurl {
url = "https://github.com/headsetapp/headset-electron/releases/download/v${version}/headset_${version}_amd64.deb";
hash = "sha256-M1HMZgYczZWFq0EGlCMEGOGUNoUcmq37J8Ycen72PhM=";
};
dontConfigure = true;
dontBuild = true;
nativeBuildInputs = [ makeWrapper dpkg ];
unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner";
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/headset
cp -R usr/share/{applications,icons} $out/share
cp -R usr/lib/headset/resources/app.asar $out/share/headset/
makeWrapper ${electron}/bin/electron $out/bin/headset \
--add-flags $out/share/headset/app.asar
runHook postInstall
'';
meta = with lib; {
description = "A simple music player for YouTube and Reddit";
homepage = "https://headsetapp.co/";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ muscaln ];
};
}

View File

@ -2602,6 +2602,8 @@ with pkgs;
harvid = callPackage ../tools/video/harvid { };
headset = callPackage ../applications/audio/headset { };
hilbish = callPackage ../shells/hilbish { };
hime = callPackage ../tools/inputmethods/hime {};