diff --git a/flake.nix b/flake.nix index 8ec1084..8576210 100644 --- a/flake.nix +++ b/flake.nix @@ -10,33 +10,33 @@ flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system; }; builtBlog = blog.defaultPackage.${system}; - blogWithRelativeLinks = pkgs.stdenv.mkDerivation { - name = "blogWithRelativeLinks"; + blogWithRelativeLinks = pkgs.stdenv.mkDerivation { + name = "blogWithRelativeLinks"; version = "1.0"; - buildInputs = [ - (pkgs.python3.withPackages (ps: [ + buildInputs = [ + (pkgs.python3.withPackages (ps: [ ps.beautifulsoup4 - ps.lxml + ps.lxml ])) - ]; - builtBlog = builtBlog; - urlScript = pkgs.writeTextFile { name = "chatgpt-fix-root-URLs.py"; text = builtins.readFile ./scripts/chatgpt-fix-root-URLs.py; }; - builder = builtins.toFile "builder.sh" " + ]; + builtBlog = builtBlog; + urlScript = pkgs.writeTextFile { name = "chatgpt-fix-root-URLs.py"; text = builtins.readFile ./scripts/chatgpt-fix-root-URLs.py; }; + builder = builtins.toFile "builder.sh" " source $stdenv/setup mkdir -p code $out cp -r $builtBlog/* code chmod -R u+w code - (cd code && python3 $urlScript) - cp -r code/* $out + (cd code && python3 $urlScript) + cp -r code/* $out "; - }; + }; in { devShell = pkgs.mkShell { packages = [ pkgs.nodejs pkgs.yarn pkgs.chromium - pkgs.python3 + pkgs.python3 ]; # Configure to use system Chromium