1
0
nixfiles/pkgs/nix-remove-result-links/default.nix

10 lines
214 B
Nix
Raw Normal View History

{ 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
'';
}