diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 46 |
1 files changed, 18 insertions, 28 deletions
@@ -1,34 +1,24 @@ { inputs = { - nixpkgs.url = "github:nixos/nixpkgs"; - flake-utils.url = "github:numtide/flake-utils"; + nixpkgs.url = "github:nixos/nixpkgs"; }; - outputs = { self, nixpkgs, flake-utils, ... }: - flake-utils.lib.eachDefaultSystem (system: - let - pkgs = import nixpkgs { inherit system; }; - - ebook-convert = with pkgs; writeShellScriptBin "ebook-convert" '' - set -euo pipefail - ${calibre}/bin/ebook-convert "$@" - ''; - in with pkgs; { - devShell = mkShell { - buildInputs = [ - esbuild - nodePackages.typescript - psmisc # fuser - watchexec - - # CLI - python311 - python311Packages.pillow - python311Packages.pytest - python311Packages.requests - ebook-convert - ]; - }; - } + outputs = { self, nixpkgs, ... }: + let + eachSystem = with nixpkgs.lib; f: foldAttrs mergeAttrs {} + (map (s: mapAttrs (_: v: { ${s} = v; }) (f s)) systems.flakeExposed); + in eachSystem (system: + let pkgs = nixpkgs.legacyPackages.${system}; + in { devShell = pkgs.mkShell { + buildInputs = with pkgs; [ + gtk4 + sqlite + libadwaita + gobject-introspection + (python3.withPackages (subpkgs: with subpkgs; [ + pygobject3 nanoid requests pillow numpy calibre pytest + ])) + ]; + }; } ); } |
