intake-sources/flake.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2023-06-10 20:59:51 +00:00
{
description = "intake feed sources";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/22.11";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system} = {
intake-rss = pkgs.python38Packages.buildPythonPackage {
name = "intake-rss";
src = builtins.path { path = ./intake-rss; name = "intake-rss"; };
format = "pyproject";
propagatedBuildInputs = with pkgs.python38Packages; [ feedparser setuptools ];
};
2023-06-12 02:57:00 +00:00
intake-reddit = pkgs.python38Packages.buildPythonPackage {
name = "intake-reddit";
src = builtins.path { path = ./intake-reddit; name = "intake-reddit"; };
format = "pyproject";
propagatedBuildInputs = with pkgs.python38Packages; [ setuptools ];
};
};
2023-06-10 20:59:51 +00:00
devShells.${system} = {
intake-rss = let
pythonEnv = pkgs.python38.withPackages (pypkgs: with pypkgs; [ black feedparser ]);
in pkgs.mkShell {
packages = [ pythonEnv ];
shellHook = ''
PS1="(intake-rss) $PS1"
'';
};
};
};
}