diff options
| author | Joris Guyonvarch | 2025-12-26 18:41:26 +0100 |
|---|---|---|
| committer | Joris Guyonvarch | 2025-12-27 20:41:44 +0100 |
| commit | a110c200e86d2325af07167531fac0f61d9681a0 (patch) | |
| tree | 90e843f915a2e153ba735849afd83710d90560bf /flake.nix | |
| parent | a26d92ad5055fa057647158eb79511e7b1841162 (diff) | |
Switch to GUI to manage the library
Allow to regroup the CLI and the view into one unique tool.
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 + ])) + ]; + }; } ); } |
