From 0c858a826dd440731d971d9068c5ba46cb5e0937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 21 Aug 2022 11:41:21 +0100 Subject: [PATCH] don't publish to netlify --- .build.yml | 5 ----- flake.nix | 32 +------------------------------- 2 files changed, 1 insertion(+), 36 deletions(-) diff --git a/.build.yml b/.build.yml index ac6c263..325317a 100644 --- a/.build.yml +++ b/.build.yml @@ -28,8 +28,3 @@ tasks: ls -hal site.tar.gz - sourcehut_upload: | acurl -i -f https://pages.sr.ht/publish/cyplo.srht.site -Fcontent=@site.tar.gz - - netlify_publish: | - set +xv - cd blog - export NETLIFY_TOKEN=`cat ~/.netlify_token` - nix-shell --pure --keep NETLIFY_TOKEN --run 'netlify-deployer master 7a0944f0-cfd0-424b-8252-ca44fc950350 public' diff --git a/flake.nix b/flake.nix index 9f5e62d..5473713 100644 --- a/flake.nix +++ b/flake.nix @@ -10,45 +10,15 @@ outputs = { self, nixpkgs, utils, flake-compat }: utils.lib.eachDefaultSystem (system: - let - pkgs = nixpkgs.legacyPackages."${system}"; - netlify-deployer = pkgs.python38Packages.buildPythonPackage rec { - pname = "netlify_deployer"; - version = "0.5.2"; - - src = pkgs.python38Packages.fetchPypi { - inherit pname version; - sha256 = - "aae0092b36e7408281ad73269b446c701edaacecc8ba1a07cc85671e3ddfae6e"; - }; - - propagatedBuildInputs = with pkgs; - with pkgs.python38Packages; [ - requests - git - pbr - wheel - setuptools - ]; - - doCheck = false; - }; - - customPython = - pkgs.python38.buildEnv.override { extraLibs = [ netlify-deployer ]; }; + let pkgs = nixpkgs.legacyPackages."${system}"; in rec { # `nix develop` devShell = pkgs.mkShell { nativeBuildInputs = with pkgs; with pkgs.python38Packages; [ cacert - customPython git hugo - hut - pip - requests - virtualenv ]; }; });