-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
46 lines (39 loc) · 1.03 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = "ViMusic-Converter Flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default =
pkgs.mkShell
{
buildInputs = with pkgs; [
# Python packages
python311
python311Packages.build
python311Packages.pip
python311Packages.python-dotenv
python311Packages.requests
python311Packages.spotipy
python311Packages.setuptools
];
};
defaultPackage.${system} = pkgs.python311.pkgs.buildPythonApplication rec {
pname = "vimusic_converter";
version = ./src/vimusic_converter/version;
format = "pyproject";
src = ./.;
propagatedBuildInputs = with pkgs.python311Packages; [
python-dotenv
requests
spotipy
setuptools
];
};
};
}