From 4afbe239150062a56ebf7e1ddb43a19bd8b8c2a3 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 2 Sep 2024 20:41:42 +0200 Subject: [PATCH] pinwheel: Remove `pants.nix` from `work` module --- hosts/pinwheel/modules/work/default.nix | 1 - hosts/pinwheel/modules/work/pants.nix | 47 ------------------------- 2 files changed, 48 deletions(-) delete mode 100644 hosts/pinwheel/modules/work/pants.nix diff --git a/hosts/pinwheel/modules/work/default.nix b/hosts/pinwheel/modules/work/default.nix index 5030cc1..4cb777c 100644 --- a/hosts/pinwheel/modules/work/default.nix +++ b/hosts/pinwheel/modules/work/default.nix @@ -13,7 +13,6 @@ in home.packages = [ (pkgs.callPackage ./syb-cli.nix {}) - (pkgs.callPackage ./pants.nix {}) (pkgs.jetbrains.plugins.addPlugins pkgs.jetbrains.idea-ultimate [ "ideavim" ]) (pkgs.google-cloud-sdk.withExtraComponents [ pkgs.google-cloud-sdk.components.gke-gcloud-auth-plugin ]) diff --git a/hosts/pinwheel/modules/work/pants.nix b/hosts/pinwheel/modules/work/pants.nix deleted file mode 100644 index 6a424e4..0000000 --- a/hosts/pinwheel/modules/work/pants.nix +++ /dev/null @@ -1,47 +0,0 @@ -{ - fetchurl, - pkgs, - lib, -}: -let - pname = "pants"; - version = "0.12.0"; - - scie-pants = pkgs.stdenv.mkDerivation { - inherit pname version; - - src = fetchurl { - url = "https://github.com/pantsbuild/scie-pants/releases/download/v${version}/scie-${pname}-linux-x86_64"; - hash = "sha256-9PjgobndxVqDTYGtw1HESrtzwzH2qE9zFwR26xtwZrM="; - }; - - phases = ["installPhase" "patchPhase"]; - installPhase = '' - mkdir -p $out/bin - cp $src $out/bin/pants - chmod +x $out/bin/pants - ''; - }; -in -pkgs.buildFHSUserEnv { - name = "pants"; - - targetPackages = with pkgs; [ - python39 - ]; - - runScript = "${scie-pants}/bin/pants"; - profile = '' - export NIX_SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt" - export SSL_CERT_FILE="/etc/ssl/certs/ca-bundle.crt" - ''; - - meta = with lib; { - description = "Protects your Pants from the elements"; - homepage = "https://github.com/pantsbuild/scie-pants"; - license = licenses.asl20; - maintainers = []; - platforms = [ "x86_64-linux" ]; - mainProgram = "pants"; - }; -}