Nix 2.30.1
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
CmdHashBase Struct Reference
Inheritance diagram for CmdHashBase:
CmdHashFile CmdHashPath

Public Member Functions

 CmdHashBase (FileIngestionMethod mode)
 
std::string description () override
 
void run () override
 

Public Attributes

FileIngestionMethod mode
 
HashFormat hashFormat = HashFormat::SRI
 
bool truncate = false
 
HashAlgorithm hashAlgo = HashAlgorithm::SHA256
 
std::vector< std::string > paths
 
std::optional< std::string > modulus
 

Detailed Description

Base for nix hash path, nix hash file (deprecated), and nix-hash (legacy).

Deprecation Issue: https://github.com/NixOS/nix/issues/8876


The documentation for this struct was generated from the following file: