about summary refs log tree commit diff
path: root/pkgs/development/tools/analysis
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-24 17:22:28 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-24 17:22:28 +0000
commit9b090ccbca3f7dd26d91db06e96e8bf8282c37ca (patch)
tree1654f2f0cb883fa4cb95def306a933475d065431 /pkgs/development/tools/analysis
parent99537e994f09e8e5499d3d877df0e16da8452ca7 (diff)
downloadnixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.tar
nixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.tar.gz
nixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.tar.bz2
nixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.tar.lz
nixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.tar.xz
nixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.tar.zst
nixlib-9b090ccbca3f7dd26d91db06e96e8bf8282c37ca.zip
treewide: Get rid of most `parseDrvName` without breaking compat
That is because this commit should be merged to both master and
release-19.09.
Diffstat (limited to 'pkgs/development/tools/analysis')
-rwxr-xr-xpkgs/development/tools/analysis/radare2/update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/analysis/radare2/update.py b/pkgs/development/tools/analysis/radare2/update.py
index 794581bca7ad..b9e72e623660 100755
--- a/pkgs/development/tools/analysis/radare2/update.py
+++ b/pkgs/development/tools/analysis/radare2/update.py
@@ -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))