unln: init

This commit is contained in:
Andrew Kvalheim 2023-11-25 10:38:34 -08:00
parent f7f5e915e2
commit 49aa516269
3 changed files with 18 additions and 0 deletions

View file

@ -118,6 +118,7 @@ in
nodePackages.svgo
trash-cli
uniscribe
unln
usbutils
v4l-utils
vagrant

View file

@ -58,6 +58,7 @@ specify {
teams-for-linux.version = "1.3";
tile-stitch = any;
trafilatura = any;
unln = any;
vivictpp = any;
vscode-extensions = namespaced {
bierner.markdown-preview-github-styles.search = open-vsx;

16
packages/unln.nix Normal file
View file

@ -0,0 +1,16 @@
{ writeShellApplication
# Dependencies
, coreutils
}:
writeShellApplication {
name = "unln";
runtimeInputs = [ coreutils ];
text = ''
canonical="$(readlink --canonicalize-existing "$1")"
cp --reflink=always --remove-destination --verbose "$canonical" "$1"
'';
}