Remove tabs and replace with spaces
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
26
flake.nix
26
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
|
||||
|
||||
Reference in New Issue
Block a user