treewide: Get rid of most parseDrvName without breaking compat
That is because this commit should be merged to both master and release-19.09.
This commit is contained in:
@@ -38,7 +38,7 @@ def get_radare2_rev() -> str:
|
||||
|
||||
def get_cutter_version() -> str:
|
||||
version_expr = """
|
||||
(with import <nixpkgs> {}; (builtins.parseDrvName (qt5.callPackage <radare2/cutter.nix> {}).name).version)
|
||||
(with import <nixpkgs> {}; lib.getVersion (qt5.callPackage <radare2/cutter.nix> {}))
|
||||
"""
|
||||
return sh("nix", "eval", "--raw", version_expr.strip(), "-I", "radare2={0}".format(SCRIPT_DIR))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user