#pragma once #include "types.hh" #include "serialise.hh" namespace nix { /* dumpPath creates a Nix archive of the specified path. The format is as follows: IF path points to a REGULAR FILE: dump(path) = attrs( [ ("type", "regular") , ("contents", contents(path)) ]) IF path points to a DIRECTORY: dump(path) = attrs( [ ("type", "directory") , ("entries", concat(map(f, sort(entries(path))))) ]) where f(fn) = attrs( [ ("name", fn) , ("file", dump(path + "/" + fn)) ]) where: attrs(as) = concat(map(attr, as)) + encN(0) attrs((a, b)) = encS(a) + encS(b) encS(s) = encN(len(s)) + s + (padding until next 64-bit boundary) encN(n) = 64-bit little-endian encoding of n. contents(path) = the contents of a regular file. sort(strings) = lexicographic sort by 8-bit value (strcmp). entries(path) = the entries of a directory, without `.' and `..'. `+' denotes string concatenation. */ struct PathFilter { virtual ~PathF
aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/linux-container.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-11-04 09:58:36 +0100
committerRicardo Wurmus <rekado@elephly.net>2022-11-04 10:01:13 +0100
commitf2b77256000a364ba58579dc88c85693d65e225f (patch)
treea3ec6ea44b7b55a2aeff9e97d62dfb00b2753f04 /gnu/build/linux-container.scm
parenta22928d0c415fa4188133c4d1cb34f77831938e2 (diff)
downloadguix-f2b77256000a364ba58579dc88c85693d65e225f.tar.gz
guix-f2b77256000a364ba58579dc88c85693d65e225f.zip
gnu: r-adegenet: Update to 2.1.8.
* gnu/packages/cran.scm (r-adegenet): Update to 2.1.8.
Diffstat (limited to 'gnu/build/linux-container.scm')
0 files changed, 0 insertions, 0 deletions