format with alejandra

This commit is contained in:
Sean Kovacs 2025-12-24 11:29:41 -05:00
commit 28043aded9
Signed by: sckova
GPG key ID: 00F325187C68651A
35 changed files with 578 additions and 589 deletions

View file

@ -1,9 +1,8 @@
final: prev: {
widevine-helium =
if prev.stdenv.hostPlatform.system == "aarch64-linux" then
prev.callPackage ./helium-browser/widevine-aarch64-linux.nix { }
else
null;
if prev.stdenv.hostPlatform.system == "aarch64-linux"
then prev.callPackage ./helium-browser/widevine-aarch64-linux.nix {}
else null;
# helium-browser =
# prev.callPackage
@ -16,7 +15,7 @@ final: prev: {
# }) { };
# };
spotify-webapp = prev.callPackage (builtins.path { path = ./spotify/package.nix; }) { };
spotify-webapp = prev.callPackage (builtins.path {path = ./spotify/package.nix;}) {};
spotifyd = prev.callPackage (builtins.path { path = ./spotifyd/package.nix; }) { };
spotifyd = prev.callPackage (builtins.path {path = ./spotifyd/package.nix;}) {};
}

View file

@ -5,9 +5,7 @@
copyDesktopItems,
chromium,
writeShellScriptBin,
}:
let
}: let
pname = "spotify-webapp";
version = "1.0.0";
@ -25,50 +23,49 @@ let
--ozone-platform=wayland \
"$@"
'';
in
stdenv.mkDerivation {
inherit pname version;
stdenv.mkDerivation {
inherit pname version;
dontUnpack = true;
dontBuild = true;
dontUnpack = true;
dontBuild = true;
nativeBuildInputs = [ copyDesktopItems ];
nativeBuildInputs = [copyDesktopItems];
desktopItems = [
(makeDesktopItem {
name = "spotify-webapp";
exec = "spotify-webapp %U";
icon = "spotify";
desktopName = "Spotify";
genericName = "Music Streaming";
comment = "Listen to music on Spotify";
categories = [
"Audio"
"Music"
"AudioVideo"
];
mimeTypes = [ "x-scheme-handler/spotify" ];
startupWMClass = "spotify-webapp";
startupNotify = true;
})
];
desktopItems = [
(makeDesktopItem {
name = "spotify-webapp";
exec = "spotify-webapp %U";
icon = "spotify";
desktopName = "Spotify";
genericName = "Music Streaming";
comment = "Listen to music on Spotify";
categories = [
"Audio"
"Music"
"AudioVideo"
];
mimeTypes = ["x-scheme-handler/spotify"];
startupWMClass = "spotify-webapp";
startupNotify = true;
})
];
installPhase = ''
runHook preInstall
installPhase = ''
runHook preInstall
mkdir -p $out/bin
ln -s ${launchScript}/bin/spotify-webapp $out/bin/spotify-webapp
mkdir -p $out/bin
ln -s ${launchScript}/bin/spotify-webapp $out/bin/spotify-webapp
runHook postInstall
'';
runHook postInstall
'';
meta = with lib; {
description = "Spotify web app running in Chromium";
homepage = "https://open.spotify.com";
license = licenses.free;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "spotify-webapp";
};
}
meta = with lib; {
description = "Spotify web app running in Chromium";
homepage = "https://open.spotify.com";
license = licenses.free;
maintainers = [];
platforms = platforms.linux;
mainProgram = "spotify-webapp";
};
}

View file

@ -20,7 +20,6 @@
withPortAudio ? stdenv.hostPlatform.isDarwin,
withPulseAudio ? config.pulseaudio or stdenv.hostPlatform.isLinux,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "spotifyd";
version = "0.4.2";
@ -41,7 +40,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
lib.optionals stdenv.hostPlatform.isLinux [openssl]
# The `dbus_mpris` feature works on other platforms, but only requires `dbus` on Linux
++ lib.optional (withMpris && stdenv.hostPlatform.isLinux) dbus
++ lib.optional (withALSA || withJack) alsa-lib
@ -50,7 +49,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
++ lib.optional withPortAudio portaudio;
# `aws-lc-sys` fails with this enabled
hardeningDisable = [ "strictoverflow" ];
hardeningDisable = ["strictoverflow"];
buildNoDefaultFeatures = true;
buildFeatures =
@ -68,8 +67,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
passthru = {
tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
updateScript = nix-update-script { };
tests.version = testers.testVersion {package = finalAttrs.finalPackage;};
updateScript = nix-update-script {};
};
meta = {