diff options
Diffstat (limited to 'third_party/nix/src/libstore/derivations.cc')
-rw-r--r-- | third_party/nix/src/libstore/derivations.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/nix/src/libstore/derivations.cc b/third_party/nix/src/libstore/derivations.cc index f8770327bf9e..9f2aa5ea924f 100644 --- a/third_party/nix/src/libstore/derivations.cc +++ b/third_party/nix/src/libstore/derivations.cc @@ -1,5 +1,7 @@ #include "derivations.hh" +#include <absl/strings/match.h> + #include "fs-accessor.hh" #include "globals.hh" #include "istringstream_nocopy.hh" @@ -299,7 +301,7 @@ std::string Derivation::unparse() const { } bool isDerivation(const std::string& fileName) { - return hasSuffix(fileName, drvExtension); + return absl::EndsWith(fileName, drvExtension); } bool BasicDerivation::isFixedOutput() const { |