Merge remote-tracking branch 'upstream/master' into staging

This commit is contained in:
John Ericson 2018-06-13 21:18:24 -04:00
commit cebda2ffd0
39 changed files with 186 additions and 659 deletions

View File

@ -31,11 +31,12 @@ let
else p; else p;
describe = args: describe = args:
let let
title = args.title or null;
name = args.name or (lib.concatStringsSep "." args.path); name = args.name or (lib.concatStringsSep "." args.path);
path = args.path or [ args.name ]; path = args.path or [ args.name ];
package = args.package or (lib.attrByPath path (throw "Invalid package attribute path `${toString path}'") pkgs); package = args.package or (lib.attrByPath path (throw "Invalid package attribute path `${toString path}'") pkgs);
in "<listitem>" in "<listitem>"
+ "<para><literal>pkgs.${name} (${package.meta.name})</literal>" + "<para><literal>${lib.optionalString (title != null) "${title} aka "}pkgs.${name} (${package.meta.name})</literal>"
+ lib.optionalString (!package.meta.available) " <emphasis>[UNAVAILABLE]</emphasis>" + lib.optionalString (!package.meta.available) " <emphasis>[UNAVAILABLE]</emphasis>"
+ ": ${package.meta.description or "???"}.</para>" + ": ${package.meta.description or "???"}.</para>"
+ lib.optionalString (args ? comment) "\n<para>${args.comment}</para>" + lib.optionalString (args ? comment) "\n<para>${args.comment}</para>"
@ -51,7 +52,7 @@ let
// lib.optionalAttrs (opt ? example) { example = substFunction opt.example; } // lib.optionalAttrs (opt ? example) { example = substFunction opt.example; }
// lib.optionalAttrs (opt ? default) { default = substFunction opt.default; } // lib.optionalAttrs (opt ? default) { default = substFunction opt.default; }
// lib.optionalAttrs (opt ? type) { type = substFunction opt.type; } // lib.optionalAttrs (opt ? type) { type = substFunction opt.type; }
// lib.optionalAttrs (opt ? relatedPackages) { relatedPackages = genRelatedPackages opt.relatedPackages; }); // lib.optionalAttrs (opt ? relatedPackages && opt.relatedPackages != []) { relatedPackages = genRelatedPackages opt.relatedPackages; });
# We need to strip references to /nix/store/* from options, # We need to strip references to /nix/store/* from options,
# including any `extraSources` if some modules came from elsewhere, # including any `extraSources` if some modules came from elsewhere,

View File

@ -39,7 +39,7 @@ let
''} ''}
${optint "ControlPort" cfg.controlPort} ${optint "ControlPort" cfg.controlPort}
${optionalString cfg.controlSocket.enable "ControlSocket ${torRunDirectory}/control GroupWritable RelaxDirModeCheck"} ${optionalString cfg.controlSocket.enable "ControlPort unix:${torRunDirectory}/control GroupWritable RelaxDirModeCheck"}
'' ''
# Client connection config # Client connection config
+ optionalString cfg.client.enable '' + optionalString cfg.client.enable ''
@ -695,19 +695,38 @@ in
uid = config.ids.uids.tor; uid = config.ids.uids.tor;
}; };
# We have to do this instead of using RuntimeDirectory option in
# the service below because systemd has no way to set owners of
# RuntimeDirectory and putting this into the service below
# requires that service to relax it's sandbox since this needs
# writable /run
systemd.services.tor-init =
{ description = "Tor Daemon Init";
wantedBy = [ "tor.service" ];
after = [ "local-fs.target" ];
script = ''
install -m 0700 -o tor -g tor -d ${torDirectory} ${torDirectory}/onion
install -m 0750 -o tor -g tor -d ${torRunDirectory}
'';
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
};
systemd.services.tor = systemd.services.tor =
{ description = "Tor Daemon"; { description = "Tor Daemon";
path = [ pkgs.tor ]; path = [ pkgs.tor ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "network.target" ]; after = [ "tor-init.service" "network.target" ];
restartTriggers = [ torRcFile ]; restartTriggers = [ torRcFile ];
serviceConfig = serviceConfig =
{ Type = "simple"; { Type = "simple";
# Translated from the upstream contrib/dist/tor.service.in # Translated from the upstream contrib/dist/tor.service.in
ExecStartPre = "${pkgs.tor}/bin/tor -f ${torRcFile} --verify-config"; ExecStartPre = "${pkgs.tor}/bin/tor -f ${torRcFile} --verify-config";
ExecStart = "${pkgs.tor}/bin/tor -f ${torRcFile} --RunAsDaemon 0"; ExecStart = "${pkgs.tor}/bin/tor -f ${torRcFile}";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
KillSignal = "SIGINT"; KillSignal = "SIGINT";
TimeoutSec = 30; TimeoutSec = 30;
@ -715,20 +734,18 @@ in
LimitNOFILE = 32768; LimitNOFILE = 32768;
# Hardening # Hardening
# Note: DevicePolicy is set to 'closed', although the # this seems to unshare /run despite what systemd.exec(5) says
# minimal permissions are really: PrivateTmp = mkIf (!cfg.controlSocket.enable) "yes";
# DeviceAllow /dev/null rw PrivateDevices = "yes";
# DeviceAllow /dev/urandom r ProtectHome = "yes";
# .. but we can't specify DeviceAllow multiple times. 'closed' ProtectSystem = "strict";
# is close enough. InaccessiblePaths = "/home";
RuntimeDirectory = "tor"; ReadOnlyPaths = "/";
StateDirectory = [ "tor" "tor/onion" ]; ReadWritePaths = [ torDirectory torRunDirectory ];
PrivateTmp = "yes";
DevicePolicy = "closed";
InaccessibleDirectories = "/home";
ReadOnlyDirectories = "/";
ReadWriteDirectories = [torDirectory torRunDirectory];
NoNewPrivileges = "yes"; NoNewPrivileges = "yes";
# tor.service.in has this in, but this line it fails to spawn a namespace when using hidden services
#CapabilityBoundingSet = "CAP_SETUID CAP_SETGID CAP_NET_BIND_SERVICE";
}; };
}; };

View File

@ -37,6 +37,11 @@ in
apply = pkg: if pkg == null then pkgs.awesome else pkg; apply = pkg: if pkg == null then pkgs.awesome else pkg;
}; };
noArgb = mkOption {
default = false;
type = types.bool;
description = "Disable client transparency support, which can be greatly detrimental to performance in some setups";
};
}; };
}; };
@ -50,7 +55,7 @@ in
{ name = "awesome"; { name = "awesome";
start = start =
'' ''
${awesome}/bin/awesome ${makeSearchPath cfg.luaModules} & ${awesome}/bin/awesome ${lib.optionalString cfg.noArgb "--no-argb"} ${makeSearchPath cfg.luaModules} &
waitPID=$! waitPID=$!
''; '';
}; };

View File

@ -244,6 +244,13 @@ in
"ati_unfree" "amdgpu" "amdgpu-pro" "ati_unfree" "amdgpu" "amdgpu-pro"
"nv" "nvidia" "nvidiaLegacy340" "nvidiaLegacy304" "nv" "nvidia" "nvidiaLegacy340" "nvidiaLegacy304"
]; ];
# TODO(@oxij): think how to easily add the rest, like those nvidia things
relatedPackages = concatLists
(mapAttrsToList (n: v:
optional (hasPrefix "xf86video" n) {
path = [ "xorg" n ];
title = removePrefix "xf86video" n;
}) pkgs.xorg);
description = '' description = ''
The names of the video drivers the configuration The names of the video drivers the configuration
supports. They will be tried in order until one that supports. They will be tried in order until one that

View File

@ -414,13 +414,16 @@ in
${packages.zfsUser}/sbin/zfs set nixos:shutdown-time="$(date)" "${pool}" ${packages.zfsUser}/sbin/zfs set nixos:shutdown-time="$(date)" "${pool}"
''; '';
}; };
createZfsService = serv:
in listToAttrs (map createImportService dataPools ++ map createSyncService allPools) // { nameValuePair serv {
"zfs-mount" = { after = [ "systemd-modules-load.service" ]; }; after = [ "systemd-modules-load.service" ];
"zfs-share" = { after = [ "systemd-modules-load.service" ]; }; wantedBy = [ "zfs.target" ];
"zfs-zed" = { after = [ "systemd-modules-load.service" ]; };
}; };
in listToAttrs (map createImportService dataPools ++
map createSyncService allPools ++
map createZfsService [ "zfs-mount" "zfs-share" "zfs-zed" ]);
systemd.targets."zfs-import" = systemd.targets."zfs-import" =
let let
services = map (pool: "zfs-import-${pool}.service") dataPools; services = map (pool: "zfs-import-${pool}.service") dataPools;

View File

@ -46,22 +46,6 @@ let
''; '';
}); });
# Collect all interfaces that are defined for a device
# as device:interface key:value pairs.
wlanDeviceInterfaces =
let
allDevices = unique (mapAttrsToList (_: v: v.device) cfg.wlanInterfaces);
interfacesOfDevice = d: filterAttrs (_: v: v.device == d) cfg.wlanInterfaces;
in
genAttrs allDevices (d: interfacesOfDevice d);
# Convert device:interface key:value pairs into a list, and if it exists,
# place the interface which is named after the device at the beginning.
wlanListDeviceFirst = device: interfaces:
if hasAttr device interfaces
then mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n==device) interfaces) ++ mapAttrsToList (n: v: v//{_iName=n;}) (filterAttrs (n: _: n!=device) interfaces)
else mapAttrsToList (n: v: v // {_iName = n;}) interfaces;
# We must escape interfaces due to the systemd interpretation # We must escape interfaces due to the systemd interpretation
subsystemDevice = interface: subsystemDevice = interface:
"sys-subsystem-net-devices-${escapeSystemdPath interface}.device"; "sys-subsystem-net-devices-${escapeSystemdPath interface}.device";

View File

@ -5,11 +5,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "avocode-${version}"; name = "avocode-${version}";
version = "2.26.4"; version = "3.0.0";
src = fetchurl { src = fetchurl {
url = "https://media.avocode.com/download/avocode-app/${version}/avocode-${version}-linux.zip"; url = "https://media.avocode.com/download/avocode-app/${version}/avocode-${version}-linux.zip";
sha256 = "0qbir023zyd53ly6y8zcm3kbhbhjjpclcgp9d0mqb5lc9zajxv12"; sha256 = "1lm0zzqhnk5gm68l8fkmlkh3gl71f1xw0amy23460a7hm9wcwjr7";
}; };
libPath = stdenv.lib.makeLibraryPath (with xorg; with gnome2; [ libPath = stdenv.lib.makeLibraryPath (with xorg; with gnome2; [

View File

@ -12,13 +12,13 @@ in
stdenv'.mkDerivation rec { stdenv'.mkDerivation rec {
name = "xmr-stak-${version}"; name = "xmr-stak-${version}";
version = "2.4.4"; version = "2.4.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fireice-uk"; owner = "fireice-uk";
repo = "xmr-stak"; repo = "xmr-stak";
rev = "${version}"; rev = "${version}";
sha256 = "1j75466hfs18w05k64yb60pw865ah226vjib46qr1wb1mcd82i5s"; sha256 = "0ix4vqhcm4x9j5p6pwdfwkm2ml6wmwsyn3ppzvxllhp4dj8blzwf";
}; };
NIX_CFLAGS_COMPILE = "-O3"; NIX_CFLAGS_COMPILE = "-O3";

View File

@ -12,7 +12,7 @@
buildGoPackage rec { buildGoPackage rec {
name = "terraform-provider-ibm-${version}"; name = "terraform-provider-ibm-${version}";
version = "0.9.1"; version = "0.10.0";
goPackagePath = "github.com/terraform-providers/terraform-provider-ibm"; goPackagePath = "github.com/terraform-providers/terraform-provider-ibm";
subPackages = [ "./" ]; subPackages = [ "./" ];
@ -20,7 +20,7 @@ buildGoPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "IBM-Cloud"; owner = "IBM-Cloud";
repo = "terraform-provider-ibm"; repo = "terraform-provider-ibm";
sha256 = "1j8v7r5lsvrg1afdbwxi8vq665qr47a9pddqgmpkirh99pzixgr6"; sha256 = "03drvhhh6pkk8yzzp8iiq478kcky9swxvxadxzxh0v4jzdprg9lr";
rev = "v${version}"; rev = "v${version}";
}; };

View File

@ -8,11 +8,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gnome-documents-${version}"; name = "gnome-documents-${version}";
version = "3.28.0"; version = "3.28.1";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gnome-documents/${gnome3.versionBranch version}/${name}.tar.xz"; url = "mirror://gnome/sources/gnome-documents/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "174q59gk9j0083bvv8sd2k66xrd4lydy2rcqbwsbzsy22fbhwcha"; sha256 = "1i0s246bg9xcjxgbajph744pn65bq5gk6r9kkl3f5iwdq3rjc0pm";
}; };
doCheck = true; doCheck = true;

View File

@ -6,11 +6,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "epiphany-${version}"; name = "epiphany-${version}";
version = "3.28.2.1"; version = "3.28.3.1";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/epiphany/${gnome3.versionBranch version}/${name}.tar.xz"; url = "mirror://gnome/sources/epiphany/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0ba0qqsbg3cv1k1pcj971y7l8kqib5l7kbr743x9a7hbmkqfk95s"; sha256 = "1xz6xl6b0iihvczyr0cs1z5ifvpai6anb4m0ng1caiph06klc1b9";
}; };
# Tests need an X display # Tests need an X display

View File

@ -47,6 +47,8 @@ let
# Relics of the old GHCJS build system # Relics of the old GHCJS build system
stage1Packages = []; stage1Packages = [];
mkStage2 = _: {}; mkStage2 = _: {};
haskellCompilerName = "ghcjs";
}; };
bootGhcjs = haskellLib.justStaticExecutables passthru.bootPkgs.ghcjs; bootGhcjs = haskellLib.justStaticExecutables passthru.bootPkgs.ghcjs;

View File

@ -11,7 +11,8 @@ in stdenv.mkDerivation {
src = fetch "libcxxabi" "0ambfcmr2nh88hx000xb7yjm9lsqjjz49w5mlf6dlxzmj3nslzx4"; src = fetch "libcxxabi" "0ambfcmr2nh88hx000xb7yjm9lsqjjz49w5mlf6dlxzmj3nslzx4";
buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind; nativeBuildInputs = [ cmake ];
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
postUnpack = '' postUnpack = ''
unpackFile ${libcxx.src} unpackFile ${libcxx.src}

View File

@ -20,7 +20,6 @@ let
in { in {
llvm = callPackage ./llvm.nix { llvm = callPackage ./llvm.nix {
inherit compiler-rt_src; inherit compiler-rt_src;
inherit (targetLlvmLibraries) libcxxabi;
}; };
clang-unwrapped = callPackage ./clang { clang-unwrapped = callPackage ./clang {

View File

@ -5,7 +5,8 @@ stdenv.mkDerivation {
src = fetch "libcxxabi" "1qfs2iis1i0ppv11jndc98cvd7s25pj46pq2sfyldmzswdxmzdg1"; src = fetch "libcxxabi" "1qfs2iis1i0ppv11jndc98cvd7s25pj46pq2sfyldmzswdxmzdg1";
buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind; nativeBuildInputs = [ cmake ];
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
postUnpack = '' postUnpack = ''
unpackFile ${libcxx.src} unpackFile ${libcxx.src}

View File

@ -13,7 +13,6 @@
, version , version
, zlib , zlib
, compiler-rt_src , compiler-rt_src
, libcxxabi
, debugVersion ? false , debugVersion ? false
, enableSharedLibraries ? true , enableSharedLibraries ? true
}: }:
@ -31,8 +30,7 @@ in stdenv.mkDerivation rec {
mv compiler-rt-* $sourceRoot/projects/compiler-rt mv compiler-rt-* $sourceRoot/projects/compiler-rt
''; '';
buildInputs = [ perl groff cmake libxml2 python libffi ] buildInputs = [ perl groff cmake libxml2 python libffi ];
++ stdenv.lib.optional stdenv.isDarwin libcxxabi;
propagatedBuildInputs = [ ncurses zlib ]; propagatedBuildInputs = [ ncurses zlib ];

View File

@ -20,7 +20,6 @@ let
in { in {
llvm = callPackage ./llvm.nix { llvm = callPackage ./llvm.nix {
inherit compiler-rt_src; inherit compiler-rt_src;
inherit (targetLlvmLibraries) libcxxabi;
}; };
clang-unwrapped = callPackage ./clang { clang-unwrapped = callPackage ./clang {

View File

@ -6,7 +6,6 @@ stdenv.mkDerivation {
src = fetch "libcxxabi" "1qi9q06zanqm8awzq83810avmvi52air6gr9zfip8mbg5viqn3cj"; src = fetch "libcxxabi" "1qi9q06zanqm8awzq83810avmvi52air6gr9zfip8mbg5viqn3cj";
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind; buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
postUnpack = '' postUnpack = ''

View File

@ -13,7 +13,6 @@
, version , version
, zlib , zlib
, compiler-rt_src , compiler-rt_src
, libcxxabi
, debugVersion ? false , debugVersion ? false
, enableSharedLibraries ? (buildPlatform == hostPlatform) , enableSharedLibraries ? (buildPlatform == hostPlatform)
, darwin , darwin
@ -53,7 +52,7 @@ in stdenv.mkDerivation rec {
groff groff
libxml2 libxml2
libffi libffi
] ++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ]; ];
propagatedBuildInputs = [ ncurses zlib ]; propagatedBuildInputs = [ ncurses zlib ];

View File

@ -28,7 +28,6 @@ let
llvm = overrideManOutput (callPackage ./llvm.nix { llvm = overrideManOutput (callPackage ./llvm.nix {
inherit compiler-rt_src; inherit compiler-rt_src;
inherit (targetLlvmLibraries) libcxxabi;
}); });
clang-unwrapped = overrideManOutput (callPackage ./clang { clang-unwrapped = overrideManOutput (callPackage ./clang {
inherit clang-tools-extra_src; inherit clang-tools-extra_src;

View File

@ -12,7 +12,6 @@
, release_version , release_version
, zlib , zlib
, compiler-rt_src , compiler-rt_src
, libcxxabi
, debugVersion ? false , debugVersion ? false
, enableManpages ? false , enableManpages ? false
, enableSharedLibraries ? true , enableSharedLibraries ? true
@ -42,8 +41,7 @@ in stdenv.mkDerivation (rec {
nativeBuildInputs = [ cmake python ] nativeBuildInputs = [ cmake python ]
++ stdenv.lib.optional enableManpages python.pkgs.sphinx; ++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
buildInputs = [ libxml2 libffi ] buildInputs = [ libxml2 libffi ];
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
propagatedBuildInputs = [ ncurses zlib ]; propagatedBuildInputs = [ ncurses zlib ];

View File

@ -43,7 +43,8 @@ in stdenv.mkDerivation (rec {
++ stdenv.lib.optional enableManpages python.pkgs.sphinx; ++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
buildInputs = [ libxml2 libffi ] buildInputs = [ libxml2 libffi ]
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ]; # TODO(@Ericson2314): Remove next mass rebuild
++ stdenv.lib.optionals (stdenv.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform) [ libcxxabi ];
propagatedBuildInputs = [ ncurses zlib ]; propagatedBuildInputs = [ ncurses zlib ];

View File

@ -25,9 +25,7 @@ let
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python2 isl release_version version fetch; }); callPackage = newScope (tools // { inherit stdenv cmake libxml2 python2 isl release_version version fetch; });
in { in {
llvm = overrideManOutput (callPackage ./llvm.nix { llvm = overrideManOutput (callPackage ./llvm.nix { });
inherit (targetLlvmLibraries) libcxxabi;
});
clang-unwrapped = overrideManOutput (callPackage ./clang { clang-unwrapped = overrideManOutput (callPackage ./clang {
inherit clang-tools-extra_src; inherit clang-tools-extra_src;
}); });

View File

@ -11,7 +11,6 @@
, version , version
, release_version , release_version
, zlib , zlib
, libcxxabi
, debugVersion ? false , debugVersion ? false
, enableManpages ? false , enableManpages ? false
, enableSharedLibraries ? true , enableSharedLibraries ? true
@ -40,8 +39,7 @@ in stdenv.mkDerivation (rec {
nativeBuildInputs = [ cmake python ] nativeBuildInputs = [ cmake python ]
++ stdenv.lib.optional enableManpages python.pkgs.sphinx; ++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
buildInputs = [ libxml2 libffi ] buildInputs = [ libxml2 libffi ];
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
propagatedBuildInputs = [ ncurses zlib ]; propagatedBuildInputs = [ ncurses zlib ];

View File

@ -4,7 +4,7 @@
, libsoup, lzma, ostree, polkit, python3, systemd, xlibs, valgrind, glib_networking, makeWrapper, gnome3 }: , libsoup, lzma, ostree, polkit, python3, systemd, xlibs, valgrind, glib_networking, makeWrapper, gnome3 }:
let let
version = "0.11.7"; version = "0.11.8.2";
desktop_schemas = gnome3.gsettings_desktop_schemas; desktop_schemas = gnome3.gsettings_desktop_schemas;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
name = "flatpak-${version}"; name = "flatpak-${version}";
@ -13,7 +13,7 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://github.com/flatpak/flatpak/releases/download/${version}/${name}.tar.xz"; url = "https://github.com/flatpak/flatpak/releases/download/${version}/${name}.tar.xz";
sha256 = "1vq4j7v68lp4fsvpas1bcsx1z4snpj0mkbq2mi00kx3jb48z768h"; sha256 = "03c2fx0y7irvws25858x217xmbacn2vfdypf8vc32hkrbh9i6df7";
}; };
patches = [ patches = [

View File

@ -1,6 +1,6 @@
--- a/tests/libtest.sh --- a/tests/libtest.sh
+++ b/tests/libtest.sh +++ b/tests/libtest.sh
@@ -322,7 +322,7 @@ @@ -324,7 +324,7 @@
# running installed-tests: assume we know what we're doing # running installed-tests: assume we know what we're doing
: :
elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \ elif ! "$FLATPAK_BWRAP" --unshare-ipc --unshare-net --unshare-pid \
@ -9,7 +9,7 @@
sed -e 's/^/# /' < bwrap-result sed -e 's/^/# /' < bwrap-result
echo "1..0 # SKIP Cannot run bwrap" echo "1..0 # SKIP Cannot run bwrap"
exit 0 exit 0
@@ -330,7 +330,7 @@ @@ -332,7 +332,7 @@
} }
skip_without_python2 () { skip_without_python2 () {
@ -18,7 +18,7 @@
echo "1..0 # SKIP this test requires /usr/bin/python2 (2.7) support" echo "1..0 # SKIP this test requires /usr/bin/python2 (2.7) support"
exit 0 exit 0
fi fi
@@ -350,12 +350,12 @@ @@ -352,12 +352,12 @@
export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)" export DBUS_SESSION_BUS_ADDRESS="$(cat dbus-session-bus-address)"
DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)" DBUS_SESSION_BUS_PID="$(cat dbus-session-bus-pid)"
@ -28,30 +28,51 @@
fi fi
cleanup () { cleanup () {
- /bin/kill $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-} - /bin/kill -9 $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-}
+ @coreutils@/bin/kill $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-} + @coreutils@/bin/kill -9 $DBUS_SESSION_BUS_PID ${FLATPAK_HTTP_PID:-}
gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye || true gpg-connect-agent --homedir "${FL_GPG_HOMEDIR}" killagent /bye || true
fusermount -u $XDG_RUNTIME_DIR/doc || : fusermount -u $XDG_RUNTIME_DIR/doc || :
if test -n "${TEST_SKIP_CLEANUP:-}"; then if test -n "${TEST_SKIP_CLEANUP:-}"; then
--- a/tests/make-test-runtime.sh --- a/tests/make-test-runtime.sh
+++ b/tests/make-test-runtime.sh +++ b/tests/make-test-runtime.sh
@@ -21,6 +21,7 @@ @@ -26,6 +26,7 @@
cat ${DIR}/metadata PATH="$PATH:/usr/sbin:/sbin"
# Add bash and dependencies # Add bash and dependencies
+mkdir -p ${DIR}/nix/store +mkdir -p ${DIR}/nix/store
mkdir -p ${DIR}/usr/bin mkdir -p ${DIR}/usr/bin
mkdir -p ${DIR}/usr/lib mkdir -p ${DIR}/usr/lib
ln -s ../lib ${DIR}/usr/lib64 ln -s ../lib ${DIR}/usr/lib64
@@ -30,47 +31,27 @@ @@ -35,73 +36,27 @@
else else
cp `which ldconfig` ${DIR}/usr/bin cp `which ldconfig` ${DIR}/usr/bin
fi fi
-T=`mktemp` -LIBS=`mktemp`
-for i in $@; do -BINS=`mktemp`
-
-add_bin() {
- local f=$1
- shift
-
- if grep -qFe "${f}" $BINS; then
- # Already handled
- return 0
- fi
-
- echo $f >> $BINS
-
- # Add library dependencies
- (ldd "${f}" | sed "s/.* => //" | awk '{ print $1}' | grep ^/ | sort -u -o $LIBS $LIBS -) || true
-
- local shebang=$(sed -n '1s/^#!\([^ ]*\).*/\1/p' "${f}")
- if [ x$shebang != x ]; then
- add_bin "$shebang"
- fi
-}
-
for i in $@; do
- I=`which $i` - I=`which $i`
- cp $I ${DIR}/usr/bin - add_bin $I
- ldd $I | sed "s/.* => //" | awk '{ print $1}' | grep ^/ | grep ^/ >> $T
- if test $i == python2; then - if test $i == python2; then
- mkdir -p ${DIR}/usr/lib/python2.7/lib-dynload - mkdir -p ${DIR}/usr/lib/python2.7/lib-dynload
- # This is a hardcoded minimal set of modules we need in the current tests. - # This is a hardcoded minimal set of modules we need in the current tests.
@ -78,10 +99,13 @@
- done - done
- fi - fi
-done -done
ln -s bash ${DIR}/usr/bin/sh -for i in `cat $BINS`; do
-for i in `sort -u $T`; do - echo Adding binary $i 1>&2
- cp "$i" ${DIR}/usr/bin/
-done
-for i in `cat $LIBS`; do
- echo Adding library $i 1>&2
- cp "$i" ${DIR}/usr/lib/ - cp "$i" ${DIR}/usr/lib/
+for i in $@; do
+ I=$(readlink -f $(which $i)) + I=$(readlink -f $(which $i))
+ requisites=$(nix-store --query --requisites "$I") + requisites=$(nix-store --query --requisites "$I")
+ for r in $requisites; do + for r in $requisites; do
@ -92,6 +116,7 @@
+ done + done
+ ln -s $I ${DIR}/usr/bin/$i + ln -s $I ${DIR}/usr/bin/$i
done done
ln -s bash ${DIR}/usr/bin/sh
-# We copy the C.UTF8 locale and call it en_US. Its a bit of a lie, but -# We copy the C.UTF8 locale and call it en_US. Its a bit of a lie, but
-# the real en_US locale is often not available, because its in the -# the real en_US locale is often not available, because its in the
@ -110,7 +135,7 @@
collection_args=--collection-id=${COLLECTION_ID} collection_args=--collection-id=${COLLECTION_ID}
--- a/tests/testlibrary.c --- a/tests/testlibrary.c
+++ b/tests/testlibrary.c +++ b/tests/testlibrary.c
@@ -378,7 +378,7 @@ @@ -610,7 +610,7 @@
{ {
gint exit_code = 0; gint exit_code = 0;
char *argv[] = { (char *)bwrap, "--unshare-ipc", "--unshare-net", char *argv[] = { (char *)bwrap, "--unshare-ipc", "--unshare-net",

View File

@ -110,7 +110,8 @@ rec {
mkdir -p $out mkdir -p $out
cp -r ${includePath} $out/include cp -r ${includePath} $out/include
chmod +w $out/include chmod +w $out/include
${lib.optionalString (lib.versionOlder buildAndroidndk.version "10e") "ln -s $out/include/${targetInfo.triple}/asm $out/include/asm"} ${lib.optionalString (lib.versionOlder "10e" buildAndroidndk.version)
"ln -s $out/include/${hostInfo.triple}/asm $out/include/asm"}
ln -s ${libPath} $out/lib ln -s ${libPath} $out/lib
''; '';
} }

View File

@ -1,11 +1,11 @@
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args: { stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
buildLinux (args // rec { buildLinux (args // rec {
version = "4.4.136"; version = "4.4.137";
extraMeta.branch = "4.4"; extraMeta.branch = "4.4";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "0svb6qbhc376jk26r67qssh7lradx63s60qlm1q2kd4xjhxyj5a3"; sha256 = "01hjnwfrx0fr9zbd6qcqfxsp0xm34ai7k49i7ndxwcrhzdipkl9i";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View File

@ -1,11 +1,11 @@
{ stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args: { stdenv, buildPackages, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
buildLinux (args // rec { buildLinux (args // rec {
version = "4.9.107"; version = "4.9.108";
extraMeta.branch = "4.9"; extraMeta.branch = "4.9";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v4.x/linux-${version}.tar.xz";
sha256 = "1lya48grdgjjbzw8x5kvvblanfas23dcmchysnhwv5p0rq7g9rrw"; sha256 = "0ha0bvjfxz6nx3nrcrpciqlrphy318xi04lv4k7jr5hpialjpzkk";
}; };
} // (args.argsOverride or {})) } // (args.argsOverride or {}))

View File

@ -77,7 +77,7 @@ let
substituteInPlace ./cmd/zed/Makefile.am --replace "\$(sysconfdir)" "$out/etc" substituteInPlace ./cmd/zed/Makefile.am --replace "\$(sysconfdir)" "$out/etc"
substituteInPlace ./module/Makefile.in --replace "/bin/cp" "cp" substituteInPlace ./module/Makefile.in --replace "/bin/cp" "cp"
substituteInPlace ./etc/systemd/system/zfs-share.service.in \ substituteInPlace ./etc/systemd/system/zfs-share.service.in \
--replace "@bindir@/rm " "${coreutils}/bin/rm " --replace "/bin/rm " "${coreutils}/bin/rm "
for f in ./udev/rules.d/* for f in ./udev/rules.d/*
do do

View File

@ -1,5 +1,5 @@
{ stdenv, fetchgit, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl, cacert, { stdenv, fetchgit, autoPatchelfHook, fetchzip, libunwind, libuuid, icu, curl,
makeWrapper, less, openssl }: makeWrapper, less, openssl, pam, lttng-ust }:
let platformString = if stdenv.isDarwin then "osx" let platformString = if stdenv.isDarwin then "osx"
else if stdenv.isLinux then "linux" else if stdenv.isLinux then "linux"
@ -10,6 +10,7 @@ let platformString = if stdenv.isDarwin then "osx"
platformLdLibraryPath = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" platformLdLibraryPath = if stdenv.isDarwin then "DYLD_FALLBACK_LIBRARY_PATH"
else if stdenv.isLinux then "LD_LIBRARY_PATH" else if stdenv.isLinux then "LD_LIBRARY_PATH"
else throw "unsupported platform"; else throw "unsupported platform";
libraries = [ libunwind libuuid icu curl openssl lttng-ust ] ++ (if stdenv.isLinux then [ pam ] else []);
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "powershell-${version}"; name = "powershell-${version}";
@ -21,8 +22,8 @@ stdenv.mkDerivation rec {
stripRoot = false; stripRoot = false;
}; };
buildInputs = [ autoPatchelfHook makeWrapper ]; buildInputs = [ less ] ++ libraries;
propagatedBuildInputs = [ libunwind libuuid icu curl cacert less openssl ]; nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
# TODO: remove PAGER after upgrading to v6.1.0-preview.1 or later as it has been addressed in # TODO: remove PAGER after upgrading to v6.1.0-preview.1 or later as it has been addressed in
# https://github.com/PowerShell/PowerShell/pull/6144 # https://github.com/PowerShell/PowerShell/pull/6144
@ -31,7 +32,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/share/powershell mkdir -p $out/share/powershell
cp -r * $out/share/powershell cp -r * $out/share/powershell
rm $out/share/powershell/DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY rm $out/share/powershell/DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY
makeWrapper $out/share/powershell/pwsh $out/bin/pwsh --prefix ${platformLdLibraryPath} : "${stdenv.lib.makeLibraryPath [ libunwind libuuid icu openssl curl ]}" \ makeWrapper $out/share/powershell/pwsh $out/bin/pwsh --prefix ${platformLdLibraryPath} : "${stdenv.lib.makeLibraryPath libraries}" \
--set PAGER ${less}/bin/less --set TERM xterm --set PAGER ${less}/bin/less --set TERM xterm
''; '';

View File

@ -275,10 +275,9 @@ in rec {
libcxxabi libcxx ncurses libffi zlib gmp pcre gnugrep libcxxabi libcxx ncurses libffi zlib gmp pcre gnugrep
coreutils findutils diffutils patchutils; coreutils findutils diffutils patchutils;
llvmPackages = let llvmOverride = llvmPackages.llvm.override { inherit libcxxabi; }; llvmPackages_5 = super.llvmPackages_5 // {
in super.llvmPackages // { llvm = llvmPackages_5.llvm.override { inherit libcxxabi; };
llvm = llvmOverride; clang-unwrapped = llvmPackages_5.clang-unwrapped.override { llvm = self.llvmPackages_5.llvm; };
clang-unwrapped = llvmPackages.clang-unwrapped.override { llvm = llvmOverride; };
}; };
darwin = super.darwin // { darwin = super.darwin // {
@ -314,8 +313,8 @@ in rec {
libcxxabi libcxx ncurses libffi zlib llvm gmp pcre gnugrep libcxxabi libcxx ncurses libffi zlib llvm gmp pcre gnugrep
coreutils findutils diffutils patchutils; coreutils findutils diffutils patchutils;
llvmPackages = super.llvmPackages // { llvmPackages_5 = super.llvmPackages_5 // {
inherit (llvmPackages) llvm clang-unwrapped; inherit (llvmPackages_5) llvm clang-unwrapped;
}; };
darwin = super.darwin // { darwin = super.darwin // {

View File

@ -2,7 +2,7 @@
buildGoPackage rec { buildGoPackage rec {
name = "fzf-${version}"; name = "fzf-${version}";
version = "0.17.3"; version = "0.17.4";
rev = "${version}"; rev = "${version}";
goPackagePath = "github.com/junegunn/fzf"; goPackagePath = "github.com/junegunn/fzf";
@ -11,7 +11,7 @@ buildGoPackage rec {
inherit rev; inherit rev;
owner = "junegunn"; owner = "junegunn";
repo = "fzf"; repo = "fzf";
sha256 = "1wsyykvnss5r0sx344kjbprnb87849462p9rg9xj37cp7qzciwdn"; sha256 = "10k21v9x82imly36lgra8a7rlvz5a1jd49db16g9xc11wx7cdg8g";
}; };
outputs = [ "bin" "out" "man" ]; outputs = [ "bin" "out" "man" ];

View File

@ -1,3 +1,3 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gem "riemann-tools", "0.2.6" gem "riemann-tools", "0.2.13"

View File

@ -1,142 +1,24 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
CFPropertyList (2.3.1) beefcake (1.0.0)
beefcake (1.1.0) json (1.8.6)
builder (3.2.2)
excon (0.45.3)
faraday (0.9.1)
multipart-post (>= 1.2, < 3)
fission (0.5.0)
CFPropertyList (~> 2.2)
fog (1.31.0)
fog-atmos
fog-aws (~> 0.0)
fog-brightbox (~> 0.4)
fog-core (~> 1.30)
fog-ecloud
fog-google (>= 0.0.2)
fog-json
fog-local
fog-powerdns (>= 0.1.1)
fog-profitbricks
fog-radosgw (>= 0.0.2)
fog-riakcs
fog-sakuracloud (>= 0.0.4)
fog-serverlove
fog-softlayer
fog-storm_on_demand
fog-terremark
fog-vmfusion
fog-voxel
fog-xml (~> 0.1.1)
ipaddress (~> 0.5)
nokogiri (~> 1.5, >= 1.5.11)
fog-atmos (0.1.0)
fog-core
fog-xml
fog-aws (0.6.0)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
ipaddress (~> 0.8)
fog-brightbox (0.7.2)
fog-core (~> 1.22)
fog-json
inflecto (~> 0.0.2)
fog-core (1.31.1)
builder
excon (~> 0.45)
formatador (~> 0.2)
mime-types
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
fog-ecloud (0.3.0)
fog-core
fog-xml
fog-google (0.0.6)
fog-core
fog-json
fog-xml
fog-json (1.0.2)
fog-core (~> 1.0)
multi_json (~> 1.10)
fog-local (0.2.1)
fog-core (~> 1.27)
fog-powerdns (0.1.1)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
fog-profitbricks (0.0.3)
fog-core
fog-xml
nokogiri
fog-radosgw (0.0.4)
fog-core (>= 1.21.0)
fog-json
fog-xml (>= 0.0.1)
fog-riakcs (0.1.0)
fog-core
fog-json
fog-xml
fog-sakuracloud (1.0.1)
fog-core
fog-json
fog-serverlove (0.1.2)
fog-core
fog-json
fog-softlayer (0.4.7)
fog-core
fog-json
fog-storm_on_demand (0.1.1)
fog-core
fog-json
fog-terremark (0.1.0)
fog-core
fog-xml
fog-vmfusion (0.1.0)
fission
fog-core
fog-voxel (0.1.0)
fog-core
fog-xml
fog-xml (0.1.2)
fog-core
nokogiri (~> 1.5, >= 1.5.11)
formatador (0.2.5)
inflecto (0.0.2)
ipaddress (0.8.0)
mime-types (2.6.1)
mini_portile (0.6.2)
mtrc (0.0.4) mtrc (0.0.4)
multi_json (1.11.1) riemann-client (0.2.6)
multipart-post (2.0.0) beefcake (>= 0.3.5, <= 1.0.0)
munin-ruby (0.2.5)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.2)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
riemann-client (0.2.5)
beefcake (>= 0.3.5)
mtrc (>= 0.0.4) mtrc (>= 0.0.4)
trollop (>= 1.16.2) trollop (>= 1.16.2)
riemann-tools (0.2.6) riemann-tools (0.2.13)
faraday (>= 0.8.5) json (~> 1.8)
fog (>= 1.4.0) riemann-client (>= 0.2.6)
munin-ruby (>= 0.2.1)
nokogiri (>= 1.5.6)
riemann-client (>= 0.2.2)
trollop (>= 1.16.2) trollop (>= 1.16.2)
yajl-ruby (>= 1.1.0)
trollop (2.1.2) trollop (2.1.2)
yajl-ruby (1.2.1)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
riemann-tools (= 0.2.6) riemann-tools (= 0.2.13)
BUNDLED WITH BUNDLED WITH
1.10.2 1.14.6

View File

@ -1,444 +1,52 @@
{ {
"CFPropertyList" = { beefcake = {
version = "2.3.1";
source = { source = {
remotes = ["https://rubygems.org"];
sha256 = "10gid0a7pdllh3qmjiqkqxgfqvd7m1f2dmcm4gcd19s63pv620gv";
type = "gem"; type = "gem";
sha256 = "1wnk3gxnhfafbhgp0ic7qhzlx3lhv04v8nws2s31ii5s8135hs6k";
}; };
version = "1.0.0";
}; };
"beefcake" = { json = {
version = "1.1.0";
source = { source = {
remotes = ["https://rubygems.org"];
sha256 = "0qmj7fypgb9vag723w1a49qihxrcf5shzars106ynw2zk352gbv5";
type = "gem"; type = "gem";
sha256 = "009gzy9jp81lsnxnwisinhc58cd0qljdiipj2701lzzrha5d826z";
}; };
version = "1.8.6";
}; };
"builder" = { mtrc = {
version = "3.2.2";
source = { source = {
type = "gem"; remotes = ["https://rubygems.org"];
sha256 = "14fii7ab8qszrvsvhz6z2z3i4dw0h41a62fjr2h1j8m41vbrmyv2";
};
};
"excon" = {
version = "0.45.3";
source = {
type = "gem";
sha256 = "183kfxfjjlc97w4rxkrxjw3kis4lxm65vppmvl4bkblvlw4nq94j";
};
};
"faraday" = {
version = "0.9.1";
source = {
type = "gem";
sha256 = "1h33znnfzxpscgpq28i9fcqijd61h61zgs3gabpdgqfa1043axsn";
};
dependencies = [
"multipart-post"
];
};
"fission" = {
version = "0.5.0";
source = {
type = "gem";
sha256 = "09pmp1j1rr8r3pcmbn2na2ls7s1j9ijbxj99xi3a8r6v5xhjdjzh";
};
dependencies = [
"CFPropertyList"
];
};
"fog" = {
version = "1.31.0";
source = {
type = "gem";
sha256 = "0xr8xyrrkljm2hxi420x4qr5v6wqcj8d63v0qy1g6rkb3b1yhl9i";
};
dependencies = [
"fog-atmos"
"fog-aws"
"fog-brightbox"
"fog-core"
"fog-ecloud"
"fog-google"
"fog-json"
"fog-local"
"fog-powerdns"
"fog-profitbricks"
"fog-radosgw"
"fog-riakcs"
"fog-sakuracloud"
"fog-serverlove"
"fog-softlayer"
"fog-storm_on_demand"
"fog-terremark"
"fog-vmfusion"
"fog-voxel"
"fog-xml"
"ipaddress"
"nokogiri"
];
};
"fog-atmos" = {
version = "0.1.0";
source = {
type = "gem";
sha256 = "1aaxgnw9zy96gsh4h73kszypc32sx497s6bslvhfqh32q9d1y8c9";
};
dependencies = [
"fog-core"
"fog-xml"
];
};
"fog-aws" = {
version = "0.6.0";
source = {
type = "gem";
sha256 = "1m79s5ha6qq60pxqqxr9qs9fg8fwaz79sfxckidyhxdydcsjwx6z";
};
dependencies = [
"fog-core"
"fog-json"
"fog-xml"
"ipaddress"
];
};
"fog-brightbox" = {
version = "0.7.2";
source = {
type = "gem";
sha256 = "0636sqaf2w1rh4i2hxfgs24374l4ai8dgch8a7nycqhvjk2dm0aq";
};
dependencies = [
"fog-core"
"fog-json"
"inflecto"
];
};
"fog-core" = {
version = "1.31.1";
source = {
type = "gem";
sha256 = "1bcsy4cq7vyjmdf3h2v7q6hfj64v6phn0rfvwgj5wfza7yaxnhk7";
};
dependencies = [
"builder"
"excon"
"formatador"
"mime-types"
"net-scp"
"net-ssh"
];
};
"fog-ecloud" = {
version = "0.3.0";
source = {
type = "gem";
sha256 = "18rb4qjad9xwwqvvpj8r2h0hi9svy71pm4d3fc28cdcnfarmdi06";
};
dependencies = [
"fog-core"
"fog-xml"
];
};
"fog-google" = {
version = "0.0.6";
source = {
type = "gem";
sha256 = "1g3ykk239nxpdsr5anhprkp8vzk106gi4q6aqjh4z8q4bii0dflm";
};
dependencies = [
"fog-core"
"fog-json"
"fog-xml"
];
};
"fog-json" = {
version = "1.0.2";
source = {
type = "gem";
sha256 = "0advkkdjajkym77r3c0bg2rlahl2akj0vl4p5r273k2qmi16n00r";
};
dependencies = [
"fog-core"
"multi_json"
];
};
"fog-local" = {
version = "0.2.1";
source = {
type = "gem";
sha256 = "0i5hxwzmc2ag3z9nlligsaf679kp2pz39cd8n2s9cmxaamnlh2s3";
};
dependencies = [
"fog-core"
];
};
"fog-powerdns" = {
version = "0.1.1";
source = {
type = "gem";
sha256 = "08zavzwfkk344gz83phz4sy9nsjznsdjsmn1ifp6ja17bvydlhh7";
};
dependencies = [
"fog-core"
"fog-json"
"fog-xml"
];
};
"fog-profitbricks" = {
version = "0.0.3";
source = {
type = "gem";
sha256 = "01a3ylfkjkyagf4b4xg9x2v20pzapr3ivn9ydd92v402bjsm1nmr";
};
dependencies = [
"fog-core"
"fog-xml"
"nokogiri"
];
};
"fog-radosgw" = {
version = "0.0.4";
source = {
type = "gem";
sha256 = "1pxbvmr4dsqx4x2klwnciyhki4r5ryr9y0hi6xmm3n6fdv4ii7k3";
};
dependencies = [
"fog-core"
"fog-json"
"fog-xml"
];
};
"fog-riakcs" = {
version = "0.1.0";
source = {
type = "gem";
sha256 = "1nbxc4dky3agfwrmgm1aqmi59p6vnvfnfbhhg7xpg4c2cf41whxm";
};
dependencies = [
"fog-core"
"fog-json"
"fog-xml"
];
};
"fog-sakuracloud" = {
version = "1.0.1";
source = {
type = "gem";
sha256 = "1s16b48kh7y03hjv74ccmlfwhqqq7j7m4k6cywrgbyip8n3258n8";
};
dependencies = [
"fog-core"
"fog-json"
];
};
"fog-serverlove" = {
version = "0.1.2";
source = {
type = "gem";
sha256 = "0hxgmwzygrw25rbsy05i6nzsyr0xl7xj5j2sjpkb9n9wli5sagci";
};
dependencies = [
"fog-core"
"fog-json"
];
};
"fog-softlayer" = {
version = "0.4.7";
source = {
type = "gem";
sha256 = "0fgfbhqnyp8ywymvflflhvbns54d1432x57pgpnfy8k1cxvhv9b8";
};
dependencies = [
"fog-core"
"fog-json"
];
};
"fog-storm_on_demand" = {
version = "0.1.1";
source = {
type = "gem";
sha256 = "0fif1x8ci095b2yyilf65n7x6iyvn448azrsnmwsdkriy8vxxv3y";
};
dependencies = [
"fog-core"
"fog-json"
];
};
"fog-terremark" = {
version = "0.1.0";
source = {
type = "gem";
sha256 = "01lfkh9jppj0iknlklmwyb7ym3bfhkq58m3absb6rf5a5mcwi3lf";
};
dependencies = [
"fog-core"
"fog-xml"
];
};
"fog-vmfusion" = {
version = "0.1.0";
source = {
type = "gem";
sha256 = "0g0l0k9ylxk1h9pzqr6h2ba98fl47lpp3j19lqv4jxw0iw1rqxn4";
};
dependencies = [
"fission"
"fog-core"
];
};
"fog-voxel" = {
version = "0.1.0";
source = {
type = "gem";
sha256 = "10skdnj59yf4jpvq769njjrvh2l0wzaa7liva8n78qq003mvmfgx";
};
dependencies = [
"fog-core"
"fog-xml"
];
};
"fog-xml" = {
version = "0.1.2";
source = {
type = "gem";
sha256 = "1576sbzza47z48p0k9h1wg3rhgcvcvdd1dfz3xx1cgahwr564fqa";
};
dependencies = [
"fog-core"
"nokogiri"
];
};
"formatador" = {
version = "0.2.5";
source = {
type = "gem";
sha256 = "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0";
};
};
"inflecto" = {
version = "0.0.2";
source = {
type = "gem";
sha256 = "085l5axmvqw59mw5jg454a3m3gr67ckq9405a075isdsn7bm3sp4";
};
};
"ipaddress" = {
version = "0.8.0";
source = {
type = "gem";
sha256 = "0cwy4pyd9nl2y2apazp3hvi12gccj5a3ify8mi8k3knvxi5wk2ir";
};
};
"mime-types" = {
version = "2.6.1";
source = {
type = "gem";
sha256 = "1vnrvf245ijfyxzjbj9dr6i1hkjbyrh4yj88865wv9bs75axc5jv";
};
};
"mini_portile" = {
version = "0.6.2";
source = {
type = "gem";
sha256 = "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w";
};
};
"mtrc" = {
version = "0.0.4";
source = {
type = "gem";
sha256 = "0xj2pv4cpn0ad1xw38sinsxfzwhgqs6ff18hw0cwz5xmsf3zqmiz"; sha256 = "0xj2pv4cpn0ad1xw38sinsxfzwhgqs6ff18hw0cwz5xmsf3zqmiz";
};
};
"multi_json" = {
version = "1.11.1";
source = {
type = "gem"; type = "gem";
sha256 = "0lrmadw2scqwz7nw3j5pfdnmzqimlbaxlxi37xsydrpbbr78qf6g";
}; };
version = "0.0.4";
}; };
"multipart-post" = { riemann-client = {
version = "2.0.0"; dependencies = ["beefcake" "mtrc" "trollop"];
source = { source = {
remotes = ["https://rubygems.org"];
sha256 = "02rp8x2y8h61x8mx9c8kwgm2yyvgg63g8km93zmwmkpp5fyi3fi8";
type = "gem"; type = "gem";
sha256 = "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x";
}; };
};
"munin-ruby" = {
version = "0.2.5";
source = {
type = "gem";
sha256 = "0378jyf0hdbfs2vvk7v8k7hqilzi1rfkpn271dyrqqal7g2lnjl2";
};
};
"net-scp" = {
version = "1.2.1";
source = {
type = "gem";
sha256 = "0b0jqrcsp4bbi4n4mzyf70cp2ysyp6x07j8k8cqgxnvb4i3a134j";
};
dependencies = [
"net-ssh"
];
};
"net-ssh" = {
version = "2.9.2";
source = {
type = "gem";
sha256 = "1p0bj41zrmw5lhnxlm1pqb55zfz9y4p9fkrr9a79nrdmzrk1ph8r";
};
};
"nokogiri" = {
version = "1.6.6.2";
source = {
type = "gem";
sha256 = "1j4qv32qjh67dcrc1yy1h8sqjnny8siyy4s44awla8d6jk361h30";
};
dependencies = [
"mini_portile"
];
};
"riemann-client" = {
version = "0.2.5";
source = {
type = "gem";
sha256 = "1myhyh31f290jm1wlhhjvf331n5l8qdm7axkxyacdgjsfg4szsjc";
};
dependencies = [
"beefcake"
"mtrc"
"trollop"
];
};
"riemann-tools" = {
version = "0.2.6"; version = "0.2.6";
source = {
type = "gem";
sha256 = "0qjm7p55h70l5bs876hhvz3isr204663f97py9g0ajxz2z8jkzpi";
}; };
dependencies = [ riemann-tools = {
"faraday" dependencies = ["json" "riemann-client" "trollop"];
"fog"
"munin-ruby"
"nokogiri"
"riemann-client"
"trollop"
"yajl-ruby"
];
};
"trollop" = {
version = "2.1.2";
source = { source = {
remotes = ["https://rubygems.org"];
sha256 = "0brf44cq4xz0nqhs189zlg76527bfv3jr453yc00410qdzz8fpxa";
type = "gem"; type = "gem";
};
version = "0.2.13";
};
trollop = {
source = {
remotes = ["https://rubygems.org"];
sha256 = "0415y63df86sqj43c0l82and65ia5h64if7n0znkbrmi6y0jwhl8"; sha256 = "0415y63df86sqj43c0l82and65ia5h64if7n0znkbrmi6y0jwhl8";
};
};
"yajl-ruby" = {
version = "1.2.1";
source = {
type = "gem"; type = "gem";
sha256 = "0zvvb7i1bl98k3zkdrnx9vasq0rp2cyy5n7p9804dqs4fz9xh9vf";
}; };
version = "2.1.2";
}; };
} }

View File

@ -2,13 +2,13 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
name = "skim-${version}"; name = "skim-${version}";
version = "0.4.0"; version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lotabout"; owner = "lotabout";
repo = "skim"; repo = "skim";
rev = "v${version}"; rev = "v${version}";
sha256 = "067ds1sdi9ya1yqz9saczj1vml8arwzd46w35gmvdxgmxx4wmihs"; sha256 = "0hk19mqfmrsyx28lb8h1hixivl6zrc8dg3imygk1ppgn66c0zf00";
}; };
outputs = [ "out" "vim" ]; outputs = [ "out" "vim" ];
@ -17,6 +17,8 @@ rustPlatform.buildRustPackage rec {
patchPhase = '' patchPhase = ''
sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/skim.vim sed -i -e "s|expand('<sfile>:h:h')|'$out'|" plugin/skim.vim
# fix Cargo.lock version
sed -i -e '168s|0.4.0|0.5.0|' Cargo.lock
''; '';
postInstall = '' postInstall = ''

View File

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
]; ];
postPatch = '' postPatch = ''
cat >> local.h <<EOF cat >> local.h <<EOF
#define USG ${stdenv.lib.optionalString (!stdenv.isDarwin) "#define USG"}
#define TERMLIB "-lncurses" #define TERMLIB "-lncurses"
#define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}" #define LANGUAGES "{american,MASTERDICTS=american.med,HASHFILES=americanmed.hash}"
#define MASTERHASH "americanmed.hash" #define MASTERHASH "americanmed.hash"

View File

@ -383,11 +383,11 @@ let
php-cs-fixer = pkgs.stdenv.mkDerivation rec { php-cs-fixer = pkgs.stdenv.mkDerivation rec {
name = "php-cs-fixer-${version}"; name = "php-cs-fixer-${version}";
version = "2.12.0"; version = "2.12.1";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar"; url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
sha256 = "1vz3s0hbqp1rzgrqfnr0jj5qds1jnw7kyhpl4qjlpd4s40x0n4b1"; sha256 = "1ifwb30wddp5blqnrkdmf0x11dk7nbxj4z2v5403fn7wfhgvibd2";
}; };
phases = [ "installPhase" ]; phases = [ "installPhase" ];