In which tidbits regarding nix can be found...
Inherit
# introduces the 'hi' attribute to the following scope
# only valid inside a let block
nix-repl> let inherit ({greeting = "helloworld";}) greeting; in greeting
"helloworld"
| diff --git a/lib/log.cpp b/lib/log.cpp | |
| index 9fa576e..0ae6107 100644 | |
| --- a/lib/log.cpp | |
| +++ b/lib/log.cpp | |
| @@ -26,8 +26,8 @@ | |
| namespace utsushi { | |
| -log::priority log::threshold = log::FATAL; | |
| -log::category log::matching = log::NOTHING; |
| # Git only | |
| alias gi='git init -q; fle=$(mktemp -p .); git add .; git commit -am init &>/dev/null; rm $fle; git branch -m main; git commit -am main &>/dev/null; unset $fle;' | |
| # Pijul only | |
| alias pi='pijul init; pijul fork main; pijul prune master;' | |
| # Git and Pijul | |
| alias gi='git init -q; ! [ -d ./.pijul ] || { echo ".pijul/" >>.gitignore; echo ".git/" >>.pijulignore; git add .; git commit -am ".gitignore and .pijulignore" &>/dev/null; pijul add --recursive .; pijul record -am ".gitignore and .pijulignore" &>/dev/null; }; fle=$(mktemp -p .); git add .; git commit -am init &>/dev/null; rm $fle; git branch -m main; git commit -am main &>/dev/null; unset $fle;' |
| { config, pkgs, ... }: | |
| let | |
| linux_5_3_16_derivation = { stdenv, buildPackages, fetchurl, perl, buildLinux, modDirVersionArg ? null, ... } @ args: | |
| with stdenv.lib; | |
| buildLinux (args // rec { | |
| version = "5.3.16"; | |
| # modDirVersion needs to be x.y.z, will automatically add .0 if needed | |
| modDirVersion = if (modDirVersionArg == null) then concatStrings (intersperse "." (take 3 (splitString "." "${version}.0"))) else modDirVersionArg; |
I hereby claim:
To claim this, I am signing this object: