radare2-cutter: 1.7 -> 1.7.1
This commit is contained in:
parent
63b7bc847c
commit
a56fd17938
@ -8,7 +8,7 @@
|
||||
, python3 }:
|
||||
|
||||
let
|
||||
version = "1.7";
|
||||
version = "1.7.1";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "radare2-cutter-${version}";
|
||||
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
||||
owner = "radareorg";
|
||||
repo = "cutter";
|
||||
rev = "v${version}";
|
||||
sha256 = "0z9wzxd5hw0ivakrg3xiv4zx1rjj032hlmizq0pxj22xjrj1gg9n";
|
||||
sha256 = "0dfi6f016jnh3swppvks5qkvmk0j2hvggh9sd1f40kg9pg5p08hy";
|
||||
};
|
||||
|
||||
postUnpack = "export sourceRoot=$sourceRoot/src";
|
||||
|
@ -96,12 +96,12 @@ in {
|
||||
cs_sha256 = "1maww4ir78a193pm3f8lr2kdkizi7rywn68ffa65ipyr7j4pl6i4";
|
||||
};
|
||||
r2-for-cutter = generic {
|
||||
version_commit = "19251";
|
||||
gittap = "2.8.0-118-gb0547831f";
|
||||
gittip = "b0547831f127b7357e3c93bc43933482a4d6213b";
|
||||
rev = "b0547831f127b7357e3c93bc43933482a4d6213b";
|
||||
version = "2018-08-07";
|
||||
sha256 = "1ix42kipd1aayb494ajbxawzc1cwikm9fxk343d1kchxx4a30a1m";
|
||||
version_commit = "19349";
|
||||
gittap = "2.8.0-189-gf82b28982";
|
||||
gittip = "f82b289822825e4c7403734f3b95dfd7f5e4f725";
|
||||
rev = "f82b289822825e4c7403734f3b95dfd7f5e4f725";
|
||||
version = "2018-08-14";
|
||||
sha256 = "0zc2a09xmwbxphxd1b0ia0zm8323wfcmxwwx6k239681jj9qwgr1";
|
||||
cs_tip = "782ea67e17a391ca0d3faafdc365b335a1a8930a";
|
||||
cs_sha256 = "1maww4ir78a193pm3f8lr2kdkizi7rywn68ffa65ipyr7j4pl6i4";
|
||||
};
|
||||
|
@ -13,6 +13,8 @@ from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Dict
|
||||
|
||||
SCRIPT_DIR = Path(__file__).parent.resolve()
|
||||
|
||||
|
||||
def sh(*args: str) -> str:
|
||||
out = subprocess.check_output(list(args))
|
||||
@ -34,8 +36,17 @@ def get_radare2_rev() -> str:
|
||||
return release["tag_name"]
|
||||
|
||||
|
||||
def get_cutter_version() -> str:
|
||||
version_expr = """
|
||||
(with import <nixpkgs> {}; (builtins.parseDrvName (qt5.callPackage ./cutter.nix {}).name).version)
|
||||
"""
|
||||
with SCRIPT_DIR:
|
||||
return sh("nix", "eval", "--raw", version_expr.strip())
|
||||
|
||||
|
||||
def get_r2_cutter_rev() -> str:
|
||||
url = "https://api.github.com/repos/radareorg/cutter/contents/"
|
||||
version = get_cutter_version()
|
||||
url = f"https://api.github.com/repos/radareorg/cutter/contents?ref=v{version}"
|
||||
with urllib.request.urlopen(url) as response:
|
||||
data = json.load(response) # type: ignore
|
||||
for entry in data:
|
||||
|
Loading…
Reference in New Issue
Block a user