Merge master into staging-next
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, boost, capstone
|
||||
, double-conversion, graphviz, qtxmlpatterns }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "edb";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eteran";
|
||||
repo = "edb-debugger";
|
||||
rev = "1.3.0";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "fFUau8XnsRFjC83HEsqyhrwCCBOfDmV6oACf3txm7O8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [ boost.dev capstone double-conversion graphviz qtxmlpatterns ];
|
||||
|
||||
postPatch = ''
|
||||
# Remove CMAKE_INSTALL_PREFIX from DEFAULT_PLUGIN_PATH otherwise the nix store path will appear twice.
|
||||
substituteInPlace ./src/CMakeLists.txt --replace \
|
||||
'-DDEFAULT_PLUGIN_PATH=\"''${CMAKE_INSTALL_PREFIX}/''${CMAKE_INSTALL_LIBDIR}/edb\"' \
|
||||
'-DDEFAULT_PLUGIN_PATH=\"''${CMAKE_INSTALL_LIBDIR}/edb\"'
|
||||
|
||||
# The build script checks for the presence of .git to determine whether
|
||||
# submodules were fetched and will throw an error if it's not there.
|
||||
# Avoid using leaveDotGit in the fetchFromGitHub options as it is non-deterministic.
|
||||
mkdir -p src/qhexview/.git
|
||||
|
||||
# Change default optional terminal program path to one that is more likely to work on NixOS.
|
||||
substituteInPlace ./src/Configuration.cpp --replace "/usr/bin/xterm" "xterm";
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross platform AArch32/x86/x86-64 debugger";
|
||||
homepage = "https://github.com/eteran/edb-debugger";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ lihop maxxk ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
@@ -1,37 +1,26 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cargo
|
||||
, rustc
|
||||
, rustPlatform
|
||||
, pkg-config
|
||||
, glib
|
||||
, openssl
|
||||
, darwin
|
||||
}:
|
||||
{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
version = "0.2.14";
|
||||
version = "0.2.15";
|
||||
pname = "sccache";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mozilla";
|
||||
repo = "sccache";
|
||||
rev = version;
|
||||
sha256 = "1ahg3cpb9pbgpdjglnfxm5c8r8qrgwaxwz5s394478ix7f9dxind";
|
||||
rev = "v${version}";
|
||||
sha256 = "1kygk7ilv7la36kv4jdn1ird7f3896wgr88kyqf0iagfqkzb2vsb";
|
||||
};
|
||||
cargoSha256 = "0jphs0frr399iywi9ch8g271igayzv1vi3wa4v3yx19xdxawlgda";
|
||||
|
||||
cargoSha256 = "1cfdwf00jgwsv0f72427asid1xr57s56jk5xj489dgppvgy7wdbj";
|
||||
|
||||
cargoBuildFlags = [ "--features=all" ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config cargo rustc
|
||||
];
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
|
||||
|
||||
# Tests fail because of client server setup which is not possible inside the pure environment,
|
||||
# see https://github.com/mozilla/sccache/issues/460
|
||||
checkPhase = null;
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Ccache with Cloud Storage";
|
||||
|
||||
Reference in New Issue
Block a user