#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 ~PathFilter() { } virtual bool operator () (const Path & path) { return true; } }; extern PathFilter defaultPathFilter; void dumpPath(const Path & path, Sink & sink, PathFilter & filter = defaultPathFilter); struct ParseSink { virtual void createDirectory(const Path & path) { }; virtual void createRegularFile(const Path & path) { }; virtual void isExecutable() { }; virtual void preallocateContents(unsigned long long size) { }; virtual void receiveContents(unsigned char * data, unsigned int len) { }; virtual void createSymlink(const Path & path, const string & target) { }; }; void parseDump(ParseSink & sink, Source & source); void restorePath(const Path & path, Source & source); } option value='author'>author
path: root/gnu/packages/fonts.scm
AgeCommit message (Expand)Author
2023-03-26gnu: font-sil-charis: Update to 6.2.0....Stefan Baums
2023-03-26gnu: font-sil-andika: Update to 6.2.0....Stefan Baums
2023-03-26gnu: font-sil-gentium: Update to 6.2.0....Stefan Baums
2023-03-13gnu: Add font-iosevka-ss09....Paul A. Patience
2023-03-13gnu: Add font-iosevka-ss08....Paul A. Patience
2023-03-13gnu: font-iosevka: Update to 20.0.0....Paul A. Patience
2023-03-01gnu: font-google-noto-emoji: Install correct license file....Simon South
2023-02-27gnu: Add font-microsoft-cascadia....Jake Leporte
2023-02-19gnu: Use HTTPS package home pages wherever possible....Tobias Geerinckx-Rice
2023-02-07gnu: font-lxgw-wenkai-tc: Update to 0.932....Hilton Chain
2023-01-30gnu: Add font-carlito....Trev
2023-01-30gnu: font-sarasa-gothic: Update to 0.39.0....Hilton Chain
2023-01-30gnu: font-lxgw-wenkai-tc: Update to 0.931....Hilton Chain
2023-01-30gnu: font-lxgw-wenkai: Update to 1.250....Hilton Chain
2023-01-28gnu: Add font-google-noto-emoji....Fredrik Salomonsson