unln: init
This commit is contained in:
parent
f7f5e915e2
commit
49aa516269
3 changed files with 18 additions and 0 deletions
|
@ -118,6 +118,7 @@ in
|
|||
nodePackages.svgo
|
||||
trash-cli
|
||||
uniscribe
|
||||
unln
|
||||
usbutils
|
||||
v4l-utils
|
||||
vagrant
|
||||
|
|
|
@ -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
16
packages/unln.nix
Normal 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"
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue