pkgs/nix-remove-result-links: add package
This commit is contained in:
9
pkgs/nix-remove-result-links/default.nix
Normal file
9
pkgs/nix-remove-result-links/default.nix
Normal 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
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user