10 lines
214 B
Nix
10 lines
214 B
Nix
{ 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
|
|
'';
|
|
}
|