Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
2
pkgs/development/tools/cbor-diag/Gemfile
Normal file
2
pkgs/development/tools/cbor-diag/Gemfile
Normal file
@@ -0,0 +1,2 @@
|
||||
source 'https://rubygems.org'
|
||||
gem 'cbor-diag'
|
||||
19
pkgs/development/tools/cbor-diag/Gemfile.lock
Normal file
19
pkgs/development/tools/cbor-diag/Gemfile.lock
Normal file
@@ -0,0 +1,19 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
cbor-diag (0.5.2)
|
||||
json
|
||||
treetop (~> 1)
|
||||
json (2.1.0)
|
||||
polyglot (0.3.5)
|
||||
treetop (1.6.10)
|
||||
polyglot (~> 0.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
cbor-diag
|
||||
|
||||
BUNDLED WITH
|
||||
1.14.6
|
||||
30
pkgs/development/tools/cbor-diag/default.nix
Normal file
30
pkgs/development/tools/cbor-diag/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib, bundlerApp, ruby }:
|
||||
|
||||
bundlerApp {
|
||||
pname = "cbor-diag";
|
||||
|
||||
inherit ruby;
|
||||
gemdir = ./.;
|
||||
|
||||
exes = [
|
||||
"cbor2diag.rb"
|
||||
"cbor2json.rb"
|
||||
"cbor2pretty.rb"
|
||||
"cbor2yaml.rb"
|
||||
"diag2cbor.rb"
|
||||
"diag2pretty.rb"
|
||||
"json2cbor.rb"
|
||||
"json2pretty.rb"
|
||||
"pretty2cbor.rb"
|
||||
"pretty2diag.rb"
|
||||
"yaml2cbor.rb"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "CBOR diagnostic utilities";
|
||||
homepage = https://github.com/cabo/cbor-diag;
|
||||
license = with licenses; asl20;
|
||||
maintainers = with maintainers; [ fdns ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
36
pkgs/development/tools/cbor-diag/gemset.nix
Normal file
36
pkgs/development/tools/cbor-diag/gemset.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
cbor-diag = {
|
||||
dependencies = ["json" "treetop"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1g4pxf1ag4pyb351m06l08ig1smnf8w27ynqfxkgmwak5mh1z7w1";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.5.2";
|
||||
};
|
||||
json = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.1.0";
|
||||
};
|
||||
polyglot = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.3.5";
|
||||
};
|
||||
treetop = {
|
||||
dependencies = ["polyglot"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0g31pijhnv7z960sd09lckmw9h8rs3wmc8g4ihmppszxqm99zpv7";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.6.10";
|
||||
};
|
||||
}
|
||||
2
pkgs/development/tools/cddl/Gemfile
Normal file
2
pkgs/development/tools/cddl/Gemfile
Normal file
@@ -0,0 +1,2 @@
|
||||
source 'https://rubygems.org'
|
||||
gem 'cddl'
|
||||
28
pkgs/development/tools/cddl/Gemfile.lock
Normal file
28
pkgs/development/tools/cddl/Gemfile.lock
Normal file
@@ -0,0 +1,28 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
abnc (0.1.0)
|
||||
cbor-diag (0.5.2)
|
||||
json
|
||||
treetop (~> 1)
|
||||
cddl (0.8.5)
|
||||
abnc
|
||||
cbor-diag
|
||||
colorize
|
||||
json
|
||||
regexp-examples
|
||||
colorize (0.8.1)
|
||||
json (2.1.0)
|
||||
polyglot (0.3.5)
|
||||
regexp-examples (1.4.2)
|
||||
treetop (1.6.10)
|
||||
polyglot (~> 0.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
cddl
|
||||
|
||||
BUNDLED WITH
|
||||
1.14.6
|
||||
17
pkgs/development/tools/cddl/default.nix
Normal file
17
pkgs/development/tools/cddl/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ lib, bundlerApp, ruby }:
|
||||
|
||||
bundlerApp {
|
||||
pname = "cddl";
|
||||
|
||||
inherit ruby;
|
||||
gemdir = ./.;
|
||||
exes = [ "cddl" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A parser, generator, and validator for CDDL";
|
||||
homepage = https://rubygems.org/gems/cddl;
|
||||
license = with licenses; mit;
|
||||
maintainers = with maintainers; [ fdns ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
69
pkgs/development/tools/cddl/gemset.nix
Normal file
69
pkgs/development/tools/cddl/gemset.nix
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
abnc = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "13nvzrk72nj130fs8bq8q3cfm48939rdzh7l31ncj5c4969hrbig";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.1.0";
|
||||
};
|
||||
cbor-diag = {
|
||||
dependencies = ["json" "treetop"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1g4pxf1ag4pyb351m06l08ig1smnf8w27ynqfxkgmwak5mh1z7w1";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.5.2";
|
||||
};
|
||||
cddl = {
|
||||
dependencies = ["abnc" "cbor-diag" "colorize" "json" "regexp-examples"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1pg91wrby0qgrdnf089ddy5yy2jalxd3bb9dljj16cpwv4gjx047";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.8.5";
|
||||
};
|
||||
colorize = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.8.1";
|
||||
};
|
||||
json = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.1.0";
|
||||
};
|
||||
polyglot = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.3.5";
|
||||
};
|
||||
regexp-examples = {
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "104f0j0h2x5ijly7kyaj7zz0md65r2c03cpbi5cngm0hs2sr1qkz";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.4.2";
|
||||
};
|
||||
treetop = {
|
||||
dependencies = ["polyglot"];
|
||||
source = {
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0g31pijhnv7z960sd09lckmw9h8rs3wmc8g4ihmppszxqm99zpv7";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.6.10";
|
||||
};
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
{ stdenv, fetchzip, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.5.1";
|
||||
version = "2.6.0";
|
||||
name = "jbake-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://dl.bintray.com/jbake/binary/${name}-bin.zip";
|
||||
sha256 = "1ib5gvz6sl7k0ywx22anhz69i40wc6jj5lxjxj2aa14qf4lrw912";
|
||||
sha256 = "1k71rz82fwyi51xhyghg8laz794xyz06d5apmxa9psy7yz184ylk";
|
||||
};
|
||||
|
||||
buildInputs = [ jre ];
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchurl, pkgconfig, glib, libuuid, popt, elfutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "babeltrace-1.5.4";
|
||||
name = "babeltrace-1.5.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.efficios.com/files/babeltrace/${name}.tar.bz2";
|
||||
sha256 = "1h8zi7afilbfx4jvdlhhgysj6x01w3799mdk4mdcgax04fch6hwn";
|
||||
sha256 = "1b78fam1gbsalga5pppn8ka461q35a9svz3mlbv82ssakdw4d4a0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
61
pkgs/development/tools/misc/cquery/default.nix
Normal file
61
pkgs/development/tools/misc/cquery/default.nix
Normal file
@@ -0,0 +1,61 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper
|
||||
, cmake, llvmPackages, ncurses }:
|
||||
|
||||
let
|
||||
src = fetchFromGitHub {
|
||||
owner = "cquery-project";
|
||||
repo = "cquery";
|
||||
rev = "e45a9ebbb6d8bfaf8bf1a3135b6faa910afea37e";
|
||||
sha256 = "049gkqbamq4r2nz9yjcwq369zrmwrikzbhfza2x2vndqzaavq5yg";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
stdenv = llvmPackages.stdenv;
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cquery-${version}";
|
||||
version = "2018-03-25";
|
||||
|
||||
inherit src;
|
||||
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
buildInputs = with llvmPackages; [ clang clang-unwrapped llvm ncurses ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DSYSTEM_CLANG=ON"
|
||||
"-DCLANG_CXX=ON"
|
||||
];
|
||||
|
||||
shell = stdenv.shell;
|
||||
postFixup = ''
|
||||
# We need to tell cquery where to find the standard library headers.
|
||||
|
||||
standard_library_includes="\\\"-isystem\\\", \\\"${if (stdenv.hostPlatform.libc == "glibc") then stdenv.cc.libc.dev else stdenv.cc.libc}/include\\\""
|
||||
standard_library_includes+=", \\\"-isystem\\\", \\\"${llvmPackages.libcxx}/include/c++/v1\\\""
|
||||
export standard_library_includes
|
||||
|
||||
wrapped=".cquery-wrapped"
|
||||
export wrapped
|
||||
|
||||
mv $out/bin/cquery $out/bin/$wrapped
|
||||
substituteAll ${./wrapper} $out/bin/cquery
|
||||
chmod --reference=$out/bin/$wrapped $out/bin/cquery
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
pushd ${src}
|
||||
$out/bin/cquery --ci --clang-sanity-check && \
|
||||
$out/bin/cquery --ci --test-unit
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A c/c++ language server powered by libclang";
|
||||
homepage = https://github.com/cquery-project/cquery;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = [ maintainers.tobim ];
|
||||
priority = 3;
|
||||
};
|
||||
}
|
||||
12
pkgs/development/tools/misc/cquery/wrapper
Normal file
12
pkgs/development/tools/misc/cquery/wrapper
Normal file
@@ -0,0 +1,12 @@
|
||||
#! @shell@ -e
|
||||
|
||||
initString="--init={\"extraClangArguments\": [@standard_library_includes@"
|
||||
|
||||
if [ "${NIX_CFLAGS_COMPILE}" != "" ]; then
|
||||
read -a cflags_array <<< ${NIX_CFLAGS_COMPILE}
|
||||
initString+=$(printf ', \"%s\"' "${cflags_array[@]}")
|
||||
fi
|
||||
|
||||
initString+="]}"
|
||||
|
||||
exec -a "$0" "@out@/bin/@wrapped@" "${initString}" "${extraFlagsArray[@]}" "$@"
|
||||
@@ -2,14 +2,14 @@
|
||||
, python3Packages, wrapGAppsHook, gnome3, libwnck3, gobjectIntrospection }:
|
||||
|
||||
let
|
||||
version = "${major}.13";
|
||||
major = "0.3";
|
||||
pname = "d-feet";
|
||||
version = "0.3.13";
|
||||
in python3Packages.buildPythonApplication rec {
|
||||
name = "d-feet-${version}";
|
||||
name = "${pname}-${version}";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/d-feet/${major}/d-feet-${version}.tar.xz";
|
||||
url = "mirror://gnome/sources/d-feet/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
||||
sha256 = "1md3lzs55sg04ds69dbginpxqvgg3qnf1lfx3vmsxph6bbd2y6ll";
|
||||
};
|
||||
|
||||
@@ -18,6 +18,14 @@ in python3Packages.buildPythonApplication rec {
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ pygobject3 pep8 ];
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "dfeet";
|
||||
versionPolicy = "none";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "D-Feet is an easy to use D-Bus debugger";
|
||||
|
||||
@@ -26,7 +34,7 @@ in python3Packages.buildPythonApplication rec {
|
||||
and invoke methods on those interfaces.
|
||||
'';
|
||||
|
||||
homepage = https://wiki.gnome.org/action/show/Apps/DFeet;
|
||||
homepage = https://wiki.gnome.org/Apps/DFeet;
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
maintainers = with stdenv.lib.maintainers; [ ktosiek ];
|
||||
|
||||
@@ -1,29 +1,33 @@
|
||||
{ stdenv, lib, buildGoPackage, fetchFromGitHub, runCommand
|
||||
, gpgme, libgpgerror, devicemapper, btrfs-progs, pkgconfig, ostree, libselinux }:
|
||||
, gpgme, libgpgerror, devicemapper, btrfs-progs, pkgconfig, ostree, libselinux
|
||||
, go-md2man }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
let
|
||||
version = "0.1.28";
|
||||
version = "0.1.29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "projectatomic";
|
||||
repo = "skopeo";
|
||||
sha256 = "068nwrr3nr27alravcq1sxyhdd5jjr24213vdgn1dqva3885gbi0";
|
||||
sha256 = "1lhzbyj2mm25x12s7g2jx4v8w19izjwlgx4lml13r5yy1spn65k2";
|
||||
};
|
||||
|
||||
defaultPolicyFile = runCommand "skopeo-default-policy.json" {} "cp ${src}/default-policy.json $out";
|
||||
|
||||
goPackagePath = "github.com/projectatomic/skopeo";
|
||||
|
||||
in
|
||||
buildGoPackage rec {
|
||||
name = "skopeo-${version}";
|
||||
inherit src;
|
||||
inherit src goPackagePath;
|
||||
|
||||
outputs = [ "bin" "man" "out" ];
|
||||
|
||||
goPackagePath = "github.com/projectatomic/skopeo";
|
||||
excludedPackages = "integration";
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
nativeBuildInputs = [ pkgconfig (lib.getBin go-md2man) ];
|
||||
buildInputs = [ gpgme libgpgerror devicemapper btrfs-progs ostree libselinux ];
|
||||
|
||||
buildFlagsArray = "-ldflags= -X github.com/projectatomic/skopeo/vendor/github.com/containers/image/signature.systemDefaultPolicyPath=${defaultPolicyFile}";
|
||||
@@ -33,10 +37,17 @@ buildGoPackage rec {
|
||||
export CGO_LDFLAGS="-L${getLib gpgme}/lib -L${getLib libgpgerror}/lib -L${getLib devicemapper}/lib"
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
# depends on buildGoPackage not changing …
|
||||
pushd ./go/src/${goPackagePath}
|
||||
make install-docs MANINSTALLDIR="$man"
|
||||
popd
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A command line utility for various operations on container images and image repositories";
|
||||
homepage = https://github.com/projectatomic/skopeo;
|
||||
maintainers = with stdenv.lib.maintainers; [ vdemeester ];
|
||||
maintainers = with stdenv.lib.maintainers; [ vdemeester lewo ];
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user