Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk
2019-11-11 12:09:26 +01:00
442 changed files with 23507 additions and 19144 deletions
@@ -23,13 +23,12 @@ in
stdenv.mkDerivation rec {
pname = "frama-c";
version = "19.0";
version = "19.1";
slang = "Potassium";
src = fetchurl {
url = "http://frama-c.com/download/frama-c-${version}-${slang}.tar.gz";
sha256 = "190n1n4k0xbycz25bn0d2gnfxd8w6scz3nlixl7w2k2jvpqlcs3n";
sha256 = "16xsc4jv3ycs5dqprpkh9isr6l2w6i4bq83msqmkdc7l7hf53vrd";
};
preConfigure = lib.optionalString stdenv.cc.isClang "configureFlagsArray=(\"--with-cpp=clang -E -C\")";
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "mill";
version = "0.5.1";
version = "0.5.2";
src = fetchurl {
url = "https://github.com/lihaoyi/mill/releases/download/${version}/${version}";
sha256 = "1y5044m0qlwa1wlg7xkhg76agmfn7bgcf040wf56fvxhf0w78zjw";
sha256 = "14az9znpbaads5dbcfpzw38yipmncz94i6gcl6bdjgngn0barhga";
};
nativeBuildInputs = [ makeWrapper ];
@@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "cloudflare-wrangler";
version = "1.4.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "wrangler";
rev = "v" + version;
sha256 = "1agl1cg34iklvniygrkq8dqsampvg17d3nsm0dcr6c3n5rj09gbi";
};
cargoSha256 = "0c2g6yghwqjy21yfdcri4v9aqizd06ww3zx2snns51gnqqk8r57k";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# tries to use "/homeless-shelter" and fails
doCheck = false;
meta = with stdenv.lib; {
description = "A CLI tool designed for folks who are interested in using Cloudflare Workers.";
homepage = https://github.com/cloudflare/wrangler;
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ ];
platforms = platforms.all;
};
}
+9 -5
View File
@@ -1,19 +1,23 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, pkg-config, btrfs-progs, gpgme, lvm2 }:
buildGoModule rec {
pname = "dive";
version = "0.8.0";
version = "0.9.0";
src = fetchFromGitHub {
owner = "wagoodman";
repo = pname;
rev = "v${version}";
sha256 = "1pyrdff5qqc0l3h4nssa9a7qnfqwy2p6ywc8nbwyc7wvzgdiczb8";
sha256 = "0bqmrva7rx6al50fmy4gvf853csascc5mj6ihgg7ydsy0d99j5qn";
};
modSha256 = "1fk9z7a6wghrs15pc28g5ri7rkbb1ifjb91rscwqsmh10r2wik4w";
modSha256 = "0hb7bq8v6xr8xqni1iv3zkqdnknfy539sm0vxqal1mhvs5yg06m0";
meta = with lib; {
nativeBuildInputs = [ pkg-config ];
buildInputs = stdenv.lib.optionals stdenv.isLinux [ btrfs-progs gpgme lvm2 ];
meta = with stdenv.lib; {
description = "A tool for exploring each layer in a docker image";
homepage = https://github.com/wagoodman/dive;
license = licenses.mit;
@@ -1,6 +1,7 @@
{ stdenv
, fetchurl
, substituteAll
, nixosTests
, autoreconfHook
, docbook_xml_dtd_412
@@ -131,7 +132,16 @@ in stdenv.mkDerivation rec {
'';
passthru = {
installedTestsDependencies = [ gnupg ostree python2 gnumake ];
installedTestsDependencies = [
gnupg
ostree
python2
gnumake
];
tests = {
installedTests = nixosTests.installed-tests.flatpak-builder;
};
};
meta = with stdenv.lib; {
@@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, autoconf }:
stdenv.mkDerivation rec {
pname = "argbash";
version = "2.8.1";
src = fetchFromGitHub {
owner = "matejak";
repo = "argbash";
rev = "${version}";
sha256 = "0zara7v3pnwiwkpb0x0g37pxhmim4425q4gba712f6djj115r1mr";
};
sourceRoot = "${src}/resources";
nativeBuildInputs = [ autoconf ];
makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; {
description = "Bash argument parsing code generator";
homepage = "https://argbash.io/";
license = licenses.free; # custom license. See LICENSE in source repo.
maintainers = with maintainers; [ rencire ];
};
}
@@ -0,0 +1,22 @@
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "editorconfig-checker";
version = "2.0.2";
src = fetchFromGitHub {
owner = "editorconfig-checker";
repo = "editorconfig-checker";
rev = "${version}";
sha256 = "0v2ml9r8b5admi3sv80wa1pwl9qnz03q2p84vgcmgg2nv1v6yxf3";
};
modSha256 = "09b1v9gyh6827yqlfxxxq3lcqhd5snn3n7gdlbjmga3wyp2x4g2r";
meta = with lib; {
description = "A tool to verify that your files are in harmony with your .editorconfig";
homepage = "https://editorconfig-checker.github.io/";
license = licenses.mit;
maintainers = with maintainers; [ uri-canva ];
};
}
@@ -2,23 +2,26 @@
stdenv.mkDerivation rec {
pname = "fsatrace";
version = "0.0.1-160";
version = "0.0.1-324";
src = fetchFromGitHub {
owner = "jacereda";
repo = "fsatrace";
rev = "2bf89d836e0156e68f121b0ffeedade7c9381f77";
sha256 = "0bndfmm0y738azwzf6m6xg6gjnrwcqlfjsampk67vga40yylwkbw";
rev = "41fbba17da580f81ababb32ec7e6e5fd49f11473";
sha256 = "1ihm2v723idd6m0kc1z9v73hmfvh2v0vjs8wvx5w54jaxh3lmj1y";
};
preConfigure = ''
mkdir -p $out/libexec/${pname}-${version}
export makeFlags=INSTALLDIR=$out/libexec/${pname}-${version}
installDir = "libexec/${pname}-${version}";
makeFlags = [ "INSTALLDIR=$(out)/$(installDir)" ];
preInstall = ''
mkdir -p $out/$installDir
'';
postInstall = ''
mkdir -p $out/bin
ln -s $out/libexec/${pname}-${version}/fsatrace $out/bin/
ln -s $out/$installDir/fsatrace $out/bin/fsatrace
'';
meta = with stdenv.lib; {
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "lttng-tools";
version = "2.10.8";
version = "2.11.0";
src = fetchurl {
url = "https://lttng.org/files/lttng-tools/${pname}-${version}.tar.bz2";
sha256 = "03dkwvmiqbr7dcnrk8hw8xd9i0vrx6xxz8wal56mfypxz52i2jk6";
sha256 = "1g0g7ypxvc7wd5x4d4ixmfgl9yk0lxax3ymm95hcjwxn5p497r6w";
};
nativeBuildInputs = [ pkgconfig ];
@@ -0,0 +1,78 @@
{ stdenv, requireFile, makeDesktopItem, libicns, imagemagick, zstd, jre }:
let
version = "5.3.0";
desktopItem = makeDesktopItem {
name = "stm32CubeMX";
exec = "stm32cubemx";
desktopName = "STM32CubeMX";
categories = "Application;Development;";
icon = "stm32cubemx";
};
in
stdenv.mkDerivation rec {
pname = "stm32cubemx";
inherit version;
src = requireFile rec {
name = "STM32CubeMX.tar.zst";
message = ''
Unfortunately, we cannot download file ${name} automatically.
Please proceed with the following steps to download and add it to the Nix
store yourself:
1. get en.STM32CubeMX_${builtins.replaceStrings ["."] ["-"] version}.zip
2. unzip en.STM32CubeMX_${builtins.replaceStrings ["."] ["-"] version}.zip
3. run the setup: java -jar SetupSTM32CubeMX-${version}.exe
4. create a tar from created folder: tar --zstd -cf ${name} STM32CubeMX
5. add the result to the store: nix-prefetch-url file://\$PWD/${name}
Notice: The setup will quit with an error about /bin/chmod
'';
sha256 = "1r5k5wmsvw1w2nfs3nb4gc6pb3j0x6bqljn9jzc4r8y5bxc34rr8";
};
nativeBuildInputs = [ libicns imagemagick zstd ];
buildCommand = ''
mkdir -p $out/{bin,opt,share/applications}
tar --extract --zstd --file $src --directory $out/opt/
chmod +rx $out/opt/STM32CubeMX/STM32CubeMX.exe
cat << EOF > $out/bin/${pname}
#!${stdenv.shell}
${jre}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX.exe
EOF
chmod +x $out/bin/${pname}
icns2png --extract $out/opt/STM32CubeMX/${pname}.icns
ls
for size in 16 24 32 48 64 128 256; do
mkdir -pv $out/share/icons/hicolor/"$size"x"$size"/apps
if [ -e ${pname}_"$size"x"$size"x32.png ]; then
mv ${pname}_"$size"x"$size"x32.png \
$out/share/icons/hicolor/"$size"x"$size"/apps/${pname}.png
else
convert -resize "$size"x"$size" ${pname}_256x256x32.png \
$out/share/icons/hicolor/"$size"x"$size"/apps/${pname}.png
fi
done;
ln -s ${desktopItem}/share/applications/* $out/share/applications
'';
meta = with stdenv.lib; {
description = ''
A graphical tool that allows a very easy configuration of STM32
microcontrollers and microprocessors, as well as the generation of the
corresponding initialization C code for the Arm® Cortex®-M core or a
partial Linux® Device Tree for Arm® Cortex®-A core), through a
step-by-step process.
'';
homepage = "https://www.st.com/en/development-tools/stm32cubemx.html";
license = licenses.unfree;
maintainers = with maintainers; [ wucke13 ];
platforms = platforms.all;
};
}
@@ -30,7 +30,7 @@ stdenv.mkDerivation {
license = licenses.bsd3;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [
z77z vbgl
maggesi vbgl
];
};
}
@@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
license = stdenv.lib.licenses.mit;
platforms = ocaml.meta.platforms or [];
maintainers = [
stdenv.lib.maintainers.z77z
stdenv.lib.maintainers.maggesi
stdenv.lib.maintainers.vbmithr
];
};
@@ -28,7 +28,7 @@ stdenv.mkDerivation {
license = licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [
vbgl z77z
vbgl maggesi
];
};
}
@@ -29,7 +29,7 @@ stdenv.mkDerivation {
platforms = ocaml.meta.platforms or [];
license = stdenv.lib.licenses.lgpl21;
maintainers = with stdenv.lib.maintainers; [
z77z
maggesi
];
};
}
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
description = "Generate OCaml modules from source files";
platforms = ocaml.meta.platforms or [];
maintainers = with stdenv.lib.maintainers; [
z77z
maggesi
];
};
}
+3 -2
View File
@@ -4,12 +4,13 @@ with python3;
pkgs.buildPythonApplication rec {
pname = "pypi2nix";
version = "2.0.0";
version = "2.0.1";
src = pkgs.fetchPypi {
inherit pname version;
sha256 = "0w9z07kdnfs96230jag8xgz4wx337bb3q3bvqxn3r31x8fsmz6rr";
sha256 = "138fwd3cznkfa6w3a5s4fbflh88q26hk4grlmq73dcbk06ykf84k";
};
checkInputs = with pkgs; [ pytest ];
buildInputs = with pkgs; [ setuptools_scm ];
propagatedBuildInputs = with pkgs; [
attrs
click
@@ -3,7 +3,7 @@
rustPlatform.buildRustPackage rec {
pname = "rust-bindgen";
version = "0.51.0";
version = "0.51.1";
RUSTFLAGS = "--cap-lints warn"; # probably OK to remove after update
@@ -11,10 +11,10 @@ rustPlatform.buildRustPackage rec {
owner = "rust-lang";
repo = pname;
rev = "v${version}";
sha256 = "1hlak8b57pndmdfkpfl17xxc91a6b239698bcm4yzlvliyscjgz1";
sha256 = "1agqfwac2av1b1c2bfzn0hw3178s4l94fadfx8a25dy1k87wmhfm";
};
cargoSha256 = "1311d0wjjj99m59zd2n6r4aq6lwbbpyj54ha2z9g4yd1hn344r91";
cargoSha256 = "09m0ki1ald1csfzfvlc63r6k8m9ndxy9js6mfwqyfm4lj8kpbr3f";
libclang = llvmPackages.libclang.lib; #for substituteAll
@@ -1,6 +1,8 @@
{ stdenv, lib, fetchFromGitHub
, rustPlatform, pkgconfig
, openssl, Security }:
, rustPlatform, pkgconfig, openssl
# darwin dependencies
, Security, CoreFoundation, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-geiger";
@@ -26,9 +28,16 @@ rustPlatform.buildRustPackage rec {
--skip test_package::case_6
'';
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ];
nativeBuildInputs = [ pkgconfig ];
# FIXME: Use impure version of CoreFoundation because of missing symbols.
# CFURLSetResourcePropertyForKey is defined in the headers but there's no
# corresponding implementation in the sources from opensource.apple.com.
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
'';
meta = with lib; {
description = "Detects usage of unsafe Rust in a Rust crate and its dependencies.";
homepage = https://github.com/anderejd/cargo-geiger;
@@ -19,8 +19,8 @@ buildRustPackage rec {
cargoSha256 = "07130587drrdkrk7aqb8pl8i3p485qr6xh1m86630ydlnb9z6s6i";
buildInputs = [ makeWrapper ]
++ stdenv.lib.optional stdenv.isDarwin Security;
nativeBuildInputs = [ makeWrapper ];
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
RUST_SRC_PATH = rustPlatform.rustcSrc;
+2 -2
View File
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, autoconf, automake, zlib }:
stdenv.mkDerivation rec {
version = "v0.5.1";
version = "0.5.1";
pname = "wiiload";
nativeBuildInputs = [ autoconf automake ];
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "devkitPro";
repo = "wiiload";
rev = version;
rev = "v${version}";
sha256 = "0dffy603zggkqv7g1a2jninmi64vy519gpgkdfhjnijhdm9gs5m3";
};