Files
Spotify-Top-Songs-Playlist/flake.nix
2025-06-23 15:04:46 -04:00

29 lines
786 B
Nix

{
description = "A Rust program to create and update a Spotify playlist of your recent top played tracks";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
buildPkgs = with pkgs; [
(rust-bin.selectLatestNightlyWith (toolchain: toolchain.default))
];
in
{
devShells.default = pkgs.mkShell {
buildInputs = buildPkgs;
};
}
);
}