File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ use flake
Original file line number Diff line number Diff line change @@ -89,4 +89,7 @@ tidal*.json
8989* .mpd
9090
9191# Local devtools
92- devtools
92+ devtools
93+
94+ # Nix / direnv
95+ .direnv /
Original file line number Diff line number Diff line change 1+ {
2+ description = "Unofficial API for TIDAL music streaming service." ;
3+
4+ inputs = {
5+ nixpkgs . url = "github:nixos/nixpkgs/nixos-unstable" ;
6+ flake-parts . url = "github:hercules-ci/flake-parts" ;
7+ } ;
8+
9+ outputs = inputs @ {
10+ nixpkgs ,
11+ flake-parts ,
12+ ...
13+ } :
14+ flake-parts . lib . mkFlake { inherit inputs ; } {
15+ systems = nixpkgs . lib . systems . flakeExposed ;
16+ perSystem = {
17+ pkgs ,
18+ ...
19+ } : let
20+ python = pkgs . python3 ;
21+ buildInputs =
22+ [
23+ python
24+ ]
25+ ++ ( with pkgs ; [
26+ # build / dev
27+ poetry
28+ ruff
29+ ] ) ;
30+ in {
31+ devShells . default = pkgs . mkShell {
32+ packages = buildInputs ;
33+ shellHook = ''
34+ [ ! -d .venv ] && python -m venv .venv
35+ source .venv/bin/activate
36+ poetry install --quiet 2>/dev/null
37+ '' ;
38+ } ;
39+ } ;
40+ } ;
41+ }
You can’t perform that action at this time.
0 commit comments