cat multilinetest.nix
{
test = ''
fields: ["wanted", "queued"]
'';
}
cat multilinetest.nix
{
test = ''
fields: ["wanted", "queued"]
'';
}
https://github.com/sanzoghenzo/my-pcs/tree/33c7e3b/pkgs (https://discourse.nixos.org/t/right-way-to-install-kodi-and-plugins/19181/36 https://github.com/NixOS/nixpkgs/blob/d7d18819bb70a1efe951dfa1eac9eebc01748c25/pkgs/top-level/kodi-packages.nix#L48)
the gimp.gtk attribute from passthru is used by plug-ins (https://discourse.nixos.org/t/solved-overriding-gimp-attributes-and-a-dependent-package/51003/4)
another example https://github.com/NixOS/nixpkgs/blob/086b448a5d54fd117f4dc2dee55c9f0ff461bdc1/pkgs/development/libraries/ffmpeg/generic.nix#L35
https://discourse.nixos.org/t/right-way-to-install-kodi-and-plugins/19181/35
nltest /dsgetdc:YOURDOMAIN /writable
had the rare case of a folder created by whatever process folder named cd C:\Users\user\AppData\Local\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\deep\deep\down
which made both takeown /f "C:\Users\user" /S HOSTNAME /u domain\username /r /d J
and icacls "C:\Users\user" /setowner "domain\username" /T /C
(was trial and error icacls, see at bottom what is the right approach once buried folder is removed) terminate prematurely due to the path length barrier.
cd C:\Users\user\AppData\Local\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\Anwendungsdaten\deep\deep\down
$path = (dir .\subfolder_in_buried_folder\anyfile_therein).FullName
$object = New-Object -ComObject Scripting.FileSystemObject
$output = $object.GetFile($path)
Write-Host "`n`n The short path of this directory is" $output.shortpath.trim("anyfile_therein")
Permanent Alias with pwsh.exe not powershell.exe, see https://stackoverflow.com/questions/24914589/how-to-create-permanent-powershell-aliases#comment126572792_29806921
steps:
$ cd $env:USERPROFILE\Documents
$ md PowerShell -ErrorAction SilentlyContinue
$ cd PowerShell
$ New-Item Microsoft.PowerShell_profile.ps1 -ItemType "file" -ErrorAction SilentlyContinue
$ powershell_ise.exe .\Microsoft.PowerShell_profile.ps1
evaluating file '<nix/derivation-internal.nix>' | |
using cache entry 'gitRevCount:{"rev":"280d91ed26b605fed9467aac7a12ca9886b3c508"}' -> '{"revCount":1799}' | |
using cache entry 'gitLastModified:{"rev":"280d91ed26b605fed9467aac7a12ca9886b3c508"}' -> '{"lastModified":1723477346}' | |
using cache entry 'fetchToStore:{"fingerprint":"280d91ed26b605fed9467aac7a12ca9886b3c508","method":"nar","name":"source","path":"/","store":"/nix/store"}' -> '{"storePath":"k63skmwznv2dffss8y3c4p7zg211hjqk-source"}' | |
performing daemon worker op: 11 | |
acquiring write lock on '/nix/var/nix/temproots/162469' | |
performing daemon worker op: 1 | |
using cache entry 'fetchToStore:{"fingerprint":"280d91ed26b605fed9467aac7a12ca9886b3c508","method":"nar","name":"source","path":"/","store":"/nix/store"}' -> 'null', '/nix/store/k63skmwznv2dffss8y3c4p7zg211hjqk-source' | |
store path cache hit for '/home/nixos/.nix-config/' | |
performing daemon worker op: 26 |
Split-Path -Path (Get-Command git).Path -Parent
sudo -i nix-store --gc
but then i. e. nix shell --no-substitute --option binary-caches '' .#nixosConfigurations.DANIELKNB1.pkgs.hello
again gives:
error:
β¦ while setting up the build environmenterror: getting attributes of path '/nix/store/w0cpwqkiim2b3cd8k0j5j1cz0s8kz87q-qemu-aarch64-binfmt-P-x86_64-unknown-linux-musl':
No such file or directory