Merge branch 'master' into staging-next

~4k rebuilds on each Linux.
This commit is contained in:
Vladimír Čunát
2019-11-09 07:26:53 +01:00
321 changed files with 20336 additions and 16482 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,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
];
};
}
@@ -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;