Merge master into staging-next
This commit is contained in:
commit
b05ec1fedd
15 changed files with 625 additions and 213 deletions
|
@ -375,7 +375,7 @@ let
|
|||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
tmp=$(mktemp -d initrd-secrets.XXXXXXXXXX)
|
||||
tmp=$(mktemp -d ''${TMPDIR:-/tmp}/initrd-secrets.XXXXXXXXXX)
|
||||
|
||||
${lib.concatStringsSep "\n" (mapAttrsToList (dest: source:
|
||||
let source' = if source == null then dest else toString source; in
|
||||
|
|
|
@ -69,23 +69,15 @@ let
|
|||
|
||||
in mkDerivation rec {
|
||||
pname = "drawpile";
|
||||
version = "2.1.17";
|
||||
version = "2.1.19";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "drawpile";
|
||||
repo = "drawpile";
|
||||
rev = version;
|
||||
sha256 = "sha256-AFFY+FcY9ExAur13OoWR9285RZtBe6jnRIrwi5raiCM=";
|
||||
sha256 = "sha256-MNmzcqTHfMms6q3ZilrChE5WoGzGxnAOkB0a75udA1I=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fix for libmicrohttpd 0.9.71
|
||||
(fetchpatch {
|
||||
url = "https://github.com/drawpile/Drawpile/commit/ed1a75deb113da2d1df91a28f557509c4897130e.diff";
|
||||
sha256 = "sha256-54wabH5F3Hf+6vv9rpCwCRdhjSaUFtuF/mE1/U+CpOA=";
|
||||
name = "mhdfix.patch"; })
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
|
||||
buildInputs = [
|
||||
|
|
|
@ -72,9 +72,9 @@ let
|
|||
|
||||
policies = {
|
||||
DisableAppUpdate = true;
|
||||
};
|
||||
} // config.firefox.policies or {};
|
||||
|
||||
policiesJson = writeText "no-update-firefox-policy.json" (builtins.toJSON { inherit policies; });
|
||||
policiesJson = writeText "firefox-policies.json" (builtins.toJSON { inherit policies; });
|
||||
|
||||
defaultSource = lib.findFirst (sourceMatches "en-US") {} sources;
|
||||
|
||||
|
|
|
@ -1,21 +1,22 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
{ pkg, version, sha256
|
||||
, meta ? {}
|
||||
{ pkg
|
||||
, version
|
||||
, sha256
|
||||
, meta ? { }
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
name = "hex-source-${pkg}-${version}";
|
||||
pname = "hex-source-${pkg}";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://repo.hex.pm/tarballs/${pkg}-${version}.tar";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
unpackCmd = ''
|
||||
tar -xf $curSrc contents.tar.gz
|
||||
mkdir contents
|
||||
|
|
|
@ -1,27 +1,33 @@
|
|||
{ lib, stdenv, rebar3 }:
|
||||
|
||||
{ name, version, sha256, src
|
||||
, meta ? {}
|
||||
{ name
|
||||
, version
|
||||
, sha256
|
||||
, src
|
||||
, meta ? { }
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
name = "rebar-deps-${name}-${version}";
|
||||
pname = "rebar-deps-${name}";
|
||||
inherit version;
|
||||
|
||||
phases = [ "downloadPhase" "installPhase" ];
|
||||
dontUnpack = true;
|
||||
|
||||
downloadPhase = ''
|
||||
prePhases = ''
|
||||
cp ${src} .
|
||||
HOME='.' DEBUG=1 ${rebar3}/bin/rebar3 get-deps
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p "$out/_checkouts"
|
||||
for i in ./_build/default/lib/* ; do
|
||||
echo "$i"
|
||||
cp -R "$i" "$out/_checkouts"
|
||||
done
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
outputHashAlgo = "sha256";
|
||||
|
|
706
pkgs/development/node-packages/node-packages.nix
generated
706
pkgs/development/node-packages/node-packages.nix
generated
File diff suppressed because it is too large
Load diff
|
@ -2,7 +2,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "crytic-compile";
|
||||
version = "0.2.0";
|
||||
version = "0.2.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
|
@ -10,7 +10,7 @@ buildPythonPackage rec {
|
|||
owner = "crytic";
|
||||
repo = "crytic-compile";
|
||||
rev = version;
|
||||
sha256 = "sha256-Kuc7g5+4TIcQTWYjG4uPN0Rxfom/A/xpek5K5ErlbdU=";
|
||||
sha256 = "sha256-RDb4Dc+igt2JKskBFIFvYt4xTAMujp8uXnkWsgnwdJE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pysha3 setuptools ];
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "slither-analyzer";
|
||||
version = "0.8.0";
|
||||
version = "0.8.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0b8a2e2145daefd9443ffa43639608203532e78a858af99c4c52c2b128ca681f";
|
||||
sha256 = "sha256-5JgF53ip72bne8AlGf126FIIvXi+u7rovJmMSCcZjEQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "rust-analyzer-unwrapped";
|
||||
version = "2021-08-09";
|
||||
cargoSha256 = "sha256-r01riAztIlwxRjvqQXofmqv5875nqQ0Qb9KALvKy4u8=";
|
||||
version = "2021-08-16";
|
||||
cargoSha256 = "sha256-nTO6NmY0pqVud7kpOltHBOkaLlwfIdCrchV0o93FeVk=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rust-analyzer";
|
||||
repo = "rust-analyzer";
|
||||
rev = version;
|
||||
sha256 = "sha256-l9F/cznYHxBdnb3NerIXzOMrzRnxdka0vExzUtKkBfw=";
|
||||
sha256 = "sha256-FD1AwRiSTbj10+ielHBRkDTC7wyBBSatAlzyEow5CNE=";
|
||||
};
|
||||
|
||||
buildAndTestSubdir = "crates/rust-analyzer";
|
||||
|
|
|
@ -53,13 +53,11 @@ echo "Extension version: $extension_ver"
|
|||
|
||||
build_deps="../../../../misc/vscode-extensions/rust-analyzer/build-deps"
|
||||
# We need devDependencies to build vsix.
|
||||
jq '{ name, version: $ver, dependencies: (.dependencies + .devDependencies) }' "$node_src/package.json" \
|
||||
# `esbuild` is a binary package an is already in nixpkgs so we omit it here.
|
||||
jq '{ name, version: $ver, dependencies: (.dependencies + .devDependencies | del(.esbuild)) }' "$node_src/package.json" \
|
||||
--arg ver "$extension_ver" \
|
||||
>"$build_deps/package.json.new"
|
||||
|
||||
# FIXME: rollup@2.55.0 breaks the build: https://github.com/rollup/rollup/issues/4195
|
||||
sed 's/"rollup": ".*"/"rollup": "=2.51.1"/' --in-place "$build_deps/package.json.new"
|
||||
|
||||
old_deps="$(jq '.dependencies' "$build_deps"/package.json)"
|
||||
new_deps="$(jq '.dependencies' "$build_deps"/package.json.new)"
|
||||
if [[ "$old_deps" == "$new_deps" ]]; then
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "rust-analyzer",
|
||||
"version": "0.2.702",
|
||||
"version": "0.2.710",
|
||||
"dependencies": {
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"vscode-languageclient": "^7.1.0-next.5",
|
||||
"@rollup/plugin-commonjs": "^17.0.0",
|
||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||
"d3": "^7.0.0",
|
||||
"d3-graphviz": "^4.0.0",
|
||||
"@types/glob": "^7.1.4",
|
||||
"@types/mocha": "^8.2.3",
|
||||
"@types/node": "~14.17.5",
|
||||
|
@ -17,7 +17,6 @@
|
|||
"eslint": "^7.30.0",
|
||||
"glob": "^7.1.6",
|
||||
"mocha": "^9.0.2",
|
||||
"rollup": "=2.51.1",
|
||||
"tslib": "^2.3.0",
|
||||
"typescript": "^4.3.5",
|
||||
"typescript-formatter": "^7.2.2",
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
, jq
|
||||
, rust-analyzer
|
||||
, nodePackages
|
||||
, setDefaultServerPath ? true
|
||||
, moreutils
|
||||
, esbuild
|
||||
, setDefaultServerPath ? true
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -21,7 +22,7 @@ let
|
|||
|
||||
releaseTag = rust-analyzer.version;
|
||||
|
||||
nativeBuildInputs = [ jq moreutils ];
|
||||
nativeBuildInputs = [ jq moreutils esbuild ];
|
||||
|
||||
# Follows https://github.com/rust-analyzer/rust-analyzer/blob/41949748a6123fd6061eb984a47f4fe780525e63/xtask/src/dist.rs#L39-L65
|
||||
postInstall = ''
|
||||
|
|
|
@ -56,8 +56,8 @@ stdenv.mkDerivation {
|
|||
# and using clang directly here is a better option than relying on cctools.
|
||||
# On x86_64-darwin the Clang version is too old to support this mode.
|
||||
+ lib.optionalString stdenv.isAarch64 ''
|
||||
rm $out/bin/as
|
||||
makeWrapper "${clang-unwrapped}/bin/clang" "$out/bin/as" \
|
||||
rm $out/bin/${targetPrefix}as
|
||||
makeWrapper "${clang-unwrapped}/bin/clang" "$out/bin/${targetPrefix}as" \
|
||||
--add-flags "-x assembler -integrated-as -c"
|
||||
'';
|
||||
|
||||
|
|
45
pkgs/tools/text/crowdin-cli/default.nix
Normal file
45
pkgs/tools/text/crowdin-cli/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, gawk
|
||||
, git
|
||||
, gnugrep
|
||||
, installShellFiles
|
||||
, jre
|
||||
, makeWrapper
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "crowdin-cli";
|
||||
version = "3.6.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/crowdin/${pname}/releases/download/${version}/${pname}.zip";
|
||||
sha256 = "123mv0s1jppidmwsvr8a6f8429xmpskxmnv4p8jpnfa9zrw86aaw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper unzip ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D crowdin-cli.jar $out/lib/crowdin-cli.jar
|
||||
|
||||
installShellCompletion --cmd crowdin --bash ./crowdin_completion
|
||||
|
||||
makeWrapper ${jre}/bin/java $out/bin/crowdin \
|
||||
--argv0 crowdin \
|
||||
--add-flags "-jar $out/lib/crowdin-cli.jar" \
|
||||
--prefix PATH : ${lib.makeBinPath [ gawk gnugrep git ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/crowdin/crowdin-cli/";
|
||||
description = "A command-line client for the Crowdin API";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ DamienCassou ];
|
||||
};
|
||||
}
|
|
@ -13883,6 +13883,8 @@ with pkgs;
|
|||
|
||||
gtkdialog = callPackage ../development/tools/misc/gtkdialog { };
|
||||
|
||||
crowdin-cli = callPackage ../tools/text/crowdin-cli { };
|
||||
|
||||
gtranslator = callPackage ../tools/text/gtranslator { };
|
||||
|
||||
guff = callPackage ../tools/graphics/guff { };
|
||||
|
@ -23935,8 +23937,8 @@ with pkgs;
|
|||
|
||||
drawio = callPackage ../applications/graphics/drawio {};
|
||||
|
||||
drawpile = libsForQt514.callPackage ../applications/graphics/drawpile { };
|
||||
drawpile-server-headless = libsForQt514.callPackage ../applications/graphics/drawpile {
|
||||
drawpile = libsForQt5.callPackage ../applications/graphics/drawpile { };
|
||||
drawpile-server-headless = libsForQt5.callPackage ../applications/graphics/drawpile {
|
||||
buildClient = false;
|
||||
buildServerGui = false;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue