Merge commit master into staging
This commit is contained in:
@@ -51,6 +51,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
license = "custom";
|
||||
maintainers = with stdenv.lib.maintainers; [ pierron thoughtpolice ];
|
||||
platforms = ["x86_64-linux"];
|
||||
platforms = stdenv.lib.platforms.x86;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ with python.pkgs;
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "aws-sam-cli";
|
||||
version = "0.4.0";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "4740bfa23f39880d807aa75a2143259f7f15eec34c5fa5dde8fc04d8563ef521";
|
||||
sha256 = "2acf9517f467950adb4939746658091e60cf60ee80093ffd0d3d821cb8a1f9fc";
|
||||
};
|
||||
|
||||
# Tests are not included in the PyPI package
|
||||
@@ -21,13 +21,20 @@ buildPythonApplication rec {
|
||||
boto3
|
||||
click
|
||||
cookiecutter
|
||||
dateparser
|
||||
docker
|
||||
enum34
|
||||
flask
|
||||
python-dateutil
|
||||
pyyaml
|
||||
six
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ./requirements/base.txt \
|
||||
--replace 'aws-sam-translator==1.6.0' 'aws-sam-translator>=1.6.0';
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/awslabs/aws-sam-cli;
|
||||
description = "CLI tool for local development and testing of Serverless applications";
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{ lib, buildGoPackage, fetchFromGitLab, fetchurl, go-bindata }:
|
||||
{ lib, buildGoPackage, fetchFromGitLab, fetchurl }:
|
||||
|
||||
let
|
||||
version = "11.0.0";
|
||||
version = "11.1.0";
|
||||
# Gitlab runner embeds some docker images these are prebuilt for arm and x86_64
|
||||
docker_x86_64 = fetchurl {
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/docker/prebuilt-x86_64.tar.xz";
|
||||
sha256 = "1wi2wza991hhys60c8f3rhad8dqargnb6i7xwfsxrjd26dsbif2b";
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-x86_64.tar.xz";
|
||||
sha256 = "0l7j69isnp6wlix3ysjxcr9dgcx5a0j9z2k0bsl714ff339js6j5";
|
||||
};
|
||||
|
||||
docker_arm = fetchurl {
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/docker/prebuilt-arm.tar.xz";
|
||||
sha256 = "1y67zxxad2jy1rvfhdlp194fi0qgwrnlcs24zh5lzwvsnwvc13bg";
|
||||
url = "https://gitlab-runner-downloads.s3.amazonaws.com/v${version}/helper-images/prebuilt-arm.tar.xz";
|
||||
sha256 = "16x9wbyd90jgyn7x45j9cyrdfz4hg8qav132schqrrdfrgjyrb4x";
|
||||
};
|
||||
in
|
||||
buildGoPackage rec {
|
||||
@@ -29,31 +29,16 @@ buildGoPackage rec {
|
||||
owner = "gitlab-org";
|
||||
repo = "gitlab-runner";
|
||||
rev = "v${version}";
|
||||
sha256 = "06p8fggnxn2afy0k4wjh44d1qby9n2j0mq6cl206cckzh2gfsknp";
|
||||
sha256 = "0b632jnqbj74nx27nlpiia6nq8668gf41lcb4s24gw9jnfmrwhym";
|
||||
};
|
||||
|
||||
patches = [ ./fix-shell-path.patch ];
|
||||
|
||||
buildInputs = [ go-bindata ];
|
||||
|
||||
preBuild = ''
|
||||
(
|
||||
# go-bindata names the assets after the filename thus we create a symlink with the name we want
|
||||
cd go/src/${goPackagePath}
|
||||
ln -sf ${docker_x86_64} prebuilt-x86_64.tar.xz
|
||||
ln -sf ${docker_arm} prebuilt-arm.tar.xz
|
||||
go-bindata \
|
||||
-pkg docker \
|
||||
-nocompress \
|
||||
-nomemcopy \
|
||||
-o executors/docker/bindata.go \
|
||||
prebuilt-x86_64.tar.xz \
|
||||
prebuilt-arm.tar.xz
|
||||
)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -d $out/bin
|
||||
touch $bin/bin/hello
|
||||
install -d $bin/bin/helper-images
|
||||
ln -sf ${docker_x86_64} $bin/bin/helper-images/prebuilt-x86_64.tar.xz
|
||||
ln -sf ${docker_arm} $bin/bin/helper-images/prebuilt-arm.tar.xz
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
24
pkgs/development/tools/golangci-lint/default.nix
Normal file
24
pkgs/development/tools/golangci-lint/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ buildGoPackage, fetchFromGitHub, lib }:
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "golangci-lint-${version}";
|
||||
version = "1.9.2";
|
||||
goPackagePath = "github.com/golangci/golangci-lint";
|
||||
|
||||
subPackages = [ "cmd/golangci-lint" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "golangci";
|
||||
repo = "golangci-lint";
|
||||
rev = "v${version}";
|
||||
sha256 = "0r05j6ayk5778fkd5r1sgcwq675ra0vq82lqs125g70291ryha08";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Linters Runner for Go. 5x faster than gometalinter. Nice colored output.";
|
||||
homepage = https://golangci.com/;
|
||||
license = licenses.agpl3;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.manveru ];
|
||||
};
|
||||
}
|
||||
@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256="0g29kyz4ykasdcrb0zmbrp2jqs9kv1wz9swx849i2d1ncknbzln4";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "doc" "man" "dev" "lib" "out" ];
|
||||
|
||||
buildInputs = [ oniguruma ];
|
||||
|
||||
patches = [
|
||||
@@ -25,11 +27,19 @@ stdenv.mkDerivation rec {
|
||||
];
|
||||
patchFlags = [ "-p2" ]; # `src` subdir was introduced after v1.5 was released
|
||||
|
||||
configureFlags =
|
||||
[
|
||||
"--bindir=\${bin}/bin"
|
||||
"--sbindir=\${bin}/bin"
|
||||
"--datadir=\${doc}/share"
|
||||
"--mandir=\${man}/share/man"
|
||||
]
|
||||
# jq is linked to libjq:
|
||||
configureFlags = stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
|
||||
++ stdenv.lib.optional (!stdenv.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}";
|
||||
|
||||
installCheckPhase = "$out/bin/jq --help";
|
||||
installCheckPhase = "$bin/bin/jq --help >/dev/null";
|
||||
doInstallCheck = true;
|
||||
doCheck = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = ''A lightweight and flexible command-line JSON processor'';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
let
|
||||
# Manually set version - the setup script requires
|
||||
# hg and git + keeping the .git directory around.
|
||||
version = "0.0.8";
|
||||
version = "0.0.10";
|
||||
versionFile = writeScript "version.ml" ''
|
||||
cat > "./version.ml" <<EOF
|
||||
let build_info () =
|
||||
@@ -18,7 +18,7 @@ in stdenv.mkDerivation {
|
||||
owner = "facebook";
|
||||
repo = "pyre-check";
|
||||
rev = "v${version}";
|
||||
sha256 = "0c4km27xnzsqcqvjqxmqak37x473z6azlbldy7f05ghkms7mchrw";
|
||||
sha256 = "17fk2izq434jsr8dfz828754356qdwa6zv0lbzm6z1kgq4jg7brv";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
@@ -33,6 +33,7 @@ in stdenv.mkDerivation {
|
||||
ppx_deriving_yojson
|
||||
ocamlbuild
|
||||
ppxlib
|
||||
# python36Packages.python36Full # TODO
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
@@ -52,13 +53,14 @@ in stdenv.mkDerivation {
|
||||
|
||||
checkPhase = ''
|
||||
make test
|
||||
# ./scripts/run-python-tests.sh # TODO: once typeshed and python bits are added
|
||||
'';
|
||||
|
||||
# Note that we're not installing the typeshed yet.
|
||||
# Improvement for a future version.
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp _build/all/main.native $out/bin/pyre
|
||||
cp _build/all/main.native $out/bin/pyre.bin
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
version = "0.1.30";
|
||||
version = "0.1.31";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "projectatomic";
|
||||
repo = "skopeo";
|
||||
sha256 = "10lpiiki7mlhrp4bid40wys3lch7fars1whxsa5gy0frfgp89ghn";
|
||||
sha256 = "02z46wxhms8yph03ksl7i4hbqy15v3y1r43js9dxn0a45vxkm7lb";
|
||||
};
|
||||
|
||||
defaultPolicyFile = runCommand "skopeo-default-policy.json" {} "cp ${src}/default-policy.json $out";
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "yarn-${version}";
|
||||
version = "1.8.0";
|
||||
version = "1.9.2";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz";
|
||||
sha256 = "145z9i935kab5pv3pldgs3b1i9ppplc928c71c2lbz8my1z6j77w";
|
||||
sha256 = "0bk006zs1bk6nwj9x07ry314fgxi21sk79h1paljbs6yzrv62h4g";
|
||||
};
|
||||
|
||||
buildInputs = [makeWrapper nodejs];
|
||||
buildInputs = [ makeWrapper nodejs ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,libexec/yarn/}
|
||||
|
||||
Reference in New Issue
Block a user