From d4f7c581955195ffdb7246b35cd264702564b2d6 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 16 Oct 2024 21:07:43 -0400 Subject: check-pr,nixgc: drop --- pkgs/check-pr/package.nix | 13 ------------- pkgs/nixgc/package.nix | 28 ---------------------------- 2 files changed, 41 deletions(-) delete mode 100644 pkgs/check-pr/package.nix delete mode 100644 pkgs/nixgc/package.nix diff --git a/pkgs/check-pr/package.nix b/pkgs/check-pr/package.nix deleted file mode 100644 index 3c5961b..0000000 --- a/pkgs/check-pr/package.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ writeShellApplication }: -writeShellApplication { - name = "check-pr"; - text = '' - _usage=" - usage: check-pr [package] - " - - [ "$#" -lt 2 ] && echo -n "$_usage" && exit 1 - - nix run "github:$1?ref=pull/$2/head''${3:+#$3}" - ''; -} diff --git a/pkgs/nixgc/package.nix b/pkgs/nixgc/package.nix deleted file mode 100644 index 9d8e230..0000000 --- a/pkgs/nixgc/package.nix +++ /dev/null @@ -1,28 +0,0 @@ -# this is a shell script that uses the new nix cli to emulate -# nix-collect-garbage -{ - lib, - writeShellApplication, - nix, - fd, -}: -writeShellApplication { - name = "nixgc"; - - runtimeInputs = [ - nix - fd - ]; - - text = '' - fd . /nix/var/nix/profiles /home/*/.local/state/nix/profiles -d 3 -t symlink -E '*-link' | while read -r profile; do - nix profile wipe-history --profile "$profile" "$@" - done - ''; - - meta = with lib; { - description = "nix-collect-garbage, but with nix profile"; - maintainers = [ maintainers.getchoo ]; - platforms = platforms.linux; - }; -} -- cgit v1.2.3