Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-10-07 06:01:18 +00:00
committed by GitHub
3 changed files with 37 additions and 9 deletions
@@ -11,20 +11,20 @@ let
name = "cbqn-bytecode-files";
owner = "dzaima";
repo = "CBQN";
rev = "94bb312d20919f942eabed3dca33c514de3c3227";
hash = "sha256-aFw5/F7/sYkYmxAnGeK8EwkoVrbEcjuJAD9YT+iW9Rw=";
rev = "4d23479cdbd5ac6eb512c376ade58077b814b2b7";
sha256 = "1il6pxbllf4rs0wf2s6q6h72m3p1d6ymgsllpkmadnw1agif0fri";
};
in
assert genBytecode -> ((bqn-path != null) && (mbqn-source != null));
stdenv.mkDerivation rec {
pname = "cbqn" + lib.optionalString (!genBytecode) "-standalone";
version = "0.0.0+unstable=2021-10-01";
version = "0.0.0+unstable=2021-10-05";
src = fetchFromGitHub {
owner = "dzaima";
repo = "CBQN";
rev = "3725bd58c758a749653080319766a33169551536";
hash = "sha256-xWp64inFZRqGGTrH6Hqbj7aA0vYPyd+FdetowTMTjPs=";
rev = "e23dab20daff9c0dacc2561c616174af72029a3e";
sha256 = "17h8fb9a0hjindbxgkljajl1hjr8rdqrb85s5lz903v17wl4lrba";
};
dontConfigure = true;
@@ -34,6 +34,9 @@ stdenv.mkDerivation rec {
'';
preBuild = ''
# otherwise cbqn defaults to clang
makeFlagsArray+=("CC=$CC")
# inform make we are providing the runtime ourselves
touch src/gen/customRuntime
'' + (if genBytecode then ''
@@ -42,10 +45,6 @@ stdenv.mkDerivation rec {
cp ${cbqn-bytecode-files}/src/gen/{compiler,formatter,runtime0,runtime1,src} src/gen/
'');
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
runHook preInstall
@@ -0,0 +1,27 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "jd-diff-patch";
version = "1.4.0";
src = fetchFromGitHub {
owner = "josephburnett";
repo = "jd";
rev = "v${version}";
sha256 = "sha256-OAy4IS2JZYYPeJITNHZKiYEapzGqqYPDBCLflLYetzg=";
};
# not including web ui
excludedPackages = [ "gae" "pack" ];
vendorSha256 = "sha256-w3mFra7Je+8qIDQMSyUYucoLZ6GtrZmr56O6xmihIYc=";
doCheck = true;
meta = with lib; {
description = "Commandline utility and Go library for diffing and patching JSON values";
homepage = "https://github.com/josephburnett/jd";
license = licenses.mit;
maintainers = with maintainers; [ bryanasdev000 blaggacao ];
};
}
+2
View File
@@ -6368,6 +6368,8 @@ with pkgs;
jd = callPackage ../development/tools/jd { };
jd-diff-patch = callPackage ../development/tools/jd-diff-patch { };
jd-gui = callPackage ../tools/security/jd-gui { };
jdiskreport = callPackage ../tools/misc/jdiskreport { };