Skip to content
Open
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
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,7 @@ tidal*.json
*.mpd

# Local devtools
devtools
devtools

# Nix / direnv
.direnv/
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.

41 changes: 41 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
description = "Unofficial API for TIDAL music streaming service.";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs = inputs @ {
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = nixpkgs.lib.systems.flakeExposed;
perSystem = {
pkgs,
...
}: let
python = pkgs.python3;
buildInputs =
[
python
]
++ (with pkgs; [
# build / dev
poetry
ruff
]);
in {
devShells.default = pkgs.mkShell {
packages = buildInputs;
shellHook = ''
[ ! -d .venv ] && python -m venv .venv
source .venv/bin/activate
poetry install --quiet 2>/dev/null
'';
};
};
};
}