1
0

pkgs/nix-remove-result-links: add package

This commit is contained in:
2024-03-17 15:14:12 +01:00
parent 7b67445838
commit 343ce80661
4 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "nix-remove-result-links";
text = ''
#!/usr/bin/env bash
find "''${1:-.}" -depth -type l -name "result*" -lname "/nix/store/*" -print -delete
'';
}