Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
native_build_inputs = with pkgs; [ meson ninja pkg-config blueprint-compiler desktop-file-utils ];
build_inputs = with pkgs; [ glib-networking libadwaita libportal libsecret pipewire ] ++ (with pkgs.gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good ]);
dependencies = with pkgs; [ alsa-utils ] ++ (with pkgs.python313Packages; [ pygobject3 tidalapi requests mpd2 pypresence ]);
in {
devShells.default = pkgs.mkShell {
name = "high-tide-dev-shell";
packages = with pkgs; [ ruff gettext basedpyright ]
++ (with pkgs.python313Packages; [ python-lsp-server flake8 ])
++ native_build_inputs
++ build_inputs
++ dependencies;
};

packages.high-tide = pkgs.python313Packages.buildPythonApplication {
name = "high-tide";
pyproject = false;
src = ./.;

nativeBuildInputs = with pkgs; [ wrapGAppsHook4 ] ++ native_build_inputs;
buildInputs = build_inputs;
dependencies = dependencies;

dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];

meta = {
description = "Libadwaita TIDAL client for Linux";
homepage = "https://github.com/Nokse22/high-tide";
mainProgram = "high-tide";
};
};
defaultPackage = self.packages.${system}.high-tide;
}
);
}