Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dc0fafb5436c
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1c7c1e052956
Choose a head ref

Commits on Apr 30, 2019

  1. tmux-xpanes: init at 4.1.0

    monsieurp committed Apr 30, 2019
    Copy the full SHA
    27fc24a View commit details

Commits on May 13, 2019

  1. ddcci-driver: init at 0.3.2

    bricewge committed May 13, 2019
    Copy the full SHA
    4c468c5 View commit details

Commits on Dec 11, 2019

  1. Copy the full SHA
    edddf0a View commit details

Commits on Dec 19, 2019

  1. mkl: add GNU threading and Fortran libraries

    Signed-off-by: Roberto Di Remigio <roberto.diremigio@gmail.com>
    robertodr committed Dec 19, 2019
    Copy the full SHA
    e0605b3 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    vbgl Vincent Laporte
    Copy the full SHA
    6cc9bbe View commit details
  3. Copy the full SHA
    153597a View commit details

Commits on Dec 24, 2019

  1. Unverified

    The committer email address is not verified.
    Copy the full SHA
    1b69806 View commit details

Commits on Jan 4, 2020

  1. Revert "ocamlPackages.cppo: 1.6.5 -> 1.6.6"

    cppo 1.6.6 breaks building it with ocaml 4.02, which is still required
    for some packages.
    
    This reverts commit 000f19f.
    marsam committed Jan 4, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jluttine Jaakko Luttinen
    Copy the full SHA
    5d01fd4 View commit details
  2. fzf: fix unstable vim plugin path

    exclude version number from vim plugin path
    midchildan committed Jan 4, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    bc213d0 View commit details
  3. Merge pull request #74496 from midchildan/fix-fzf-vim-plugin-path

    fzf: fix unstable vim plugin path
    Ma27 authored Jan 4, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    502ef3c View commit details
  4. Merge pull request #60390 from monsieurp/new-tmux-panes

    tmux-xpanes: init at 4.1.0
    ryantm authored Jan 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ceb515d View commit details
  5. Merge pull request #61722 from Izorkin/pinba-nginx

    nginxModules.pinba: init at 13.05.2019
    ryantm authored Jan 4, 2020
    Copy the full SHA
    6de8b8f View commit details
  6. Merge pull request #61387 from bricewge/ddcci-driver-linux

    ddcci-driver: init at 0.3.2
    ryantm authored Jan 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e7e5fc9 View commit details
  7. Merge pull request #76942 from marsam/revert-ocaml-cppo

    Revert "ocamlPackages.cppo: 1.6.5 -> 1.6.6"
    marsam authored Jan 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    68a5472 View commit details
  8. wordpress: 5.2.4 -> 5.3

    r-ryantm authored and FRidh committed Jan 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    98c6633 View commit details
  9. wordpress: 5.3 -> 5.3.2

    markuskowa authored and FRidh committed Jan 4, 2020
    Copy the full SHA
    bebb222 View commit details
  10. Merge pull request #76332 from r-ryantm/auto-update/ocaml4.07.1-csv

    ocamlPackages.csv: 2.2 -> 2.4
    marsam authored Jan 4, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    9401576 View commit details
  11. poetry: Don't add dependencies to PYTHONPATH

    They get picked up by child processes of poetry which for example
    leads to the wrong version of pip being used by `poetry install`.
    adisbladis committed Jan 4, 2020
    Copy the full SHA
    f0c39b4 View commit details
  12. aws-okta: 0.20.1 -> 0.26.3 (#72761)

    Charg authored and kalbasit committed Jan 4, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6f43c82 View commit details
  13. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    63834d6 View commit details
  14. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    12ddd9b View commit details
  15. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2f22e67 View commit details
  16. Copy the full SHA
    fa92f00 View commit details
  17. Merge pull request #75526 from robertodr/more-mkl

    Add GNU threading and Fortran libraries to MKL package
    markuskowa authored Jan 4, 2020
    Copy the full SHA
    1c55261 View commit details
  18. Copy the full SHA
    1c7c1e0 View commit details
37 changes: 29 additions & 8 deletions pkgs/development/libraries/science/math/mkl/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenvNoCC, fetchurl, rpmextract, undmg, darwin }:
{ stdenvNoCC, fetchurl, rpmextract, undmg, darwin, enableStatic ? false }:
/*
For details on using mkl as a blas provider for python packages such as numpy,
numexpr, scipy, etc., see the Python section of the NixPkgs manual.
@@ -46,12 +46,28 @@ in stdenvNoCC.mkDerivation {
tar xzvf $f
done
'' else ''
rpmextract rpm/intel-mkl-cluster-rt-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-common-c-${rpm-ver}.noarch.rpm
# Common stuff
rpmextract rpm/intel-mkl-core-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-common-c-${rpm-ver}.noarch.rpm
rpmextract rpm/intel-mkl-common-f-${rpm-ver}.noarch.rpm
# Dynamic libraries
rpmextract rpm/intel-mkl-cluster-rt-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-core-rt-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-gnu-f-rt-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-gnu-rt-${rpm-ver}.x86_64.rpm
# Intel OpenMP runtime
rpmextract rpm/intel-openmp-${openmp-ver}.x86_64.rpm
'';
'' + (if enableStatic then ''
# Static libraries
rpmextract rpm/intel-mkl-cluster-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-gnu-${rpm-ver}.x86_64.rpm
rpmextract rpm/intel-mkl-gnu-f-${rpm-ver}.x86_64.rpm
'' else ''
# Take care of installing dynamic-only PkgConfig files during the installPhase
''
);

installPhase = ''
for f in $(find . -name 'mkl*.pc') ; do
@@ -80,16 +96,21 @@ in stdenvNoCC.mkDerivation {
cp -r compilers_and_libraries_${version}/mac/mkl/bin/pkgconfig/* $out/lib/pkgconfig
'' else ''
mkdir -p $out/lib
cp license.txt $out/lib/
cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/include $out/
mkdir -p $out/lib/pkgconfig
'') +
(if enableStatic then ''
cp -r opt/intel/compilers_and_libraries_${version}/linux/compiler/lib/intel64_lin/* $out/lib/
cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/lib/intel64_lin/* $out/lib/
cp license.txt $out/lib/
mkdir -p $out/lib/pkgconfig
cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/bin/pkgconfig/* $out/lib/pkgconfig
'');
'' else ''
cp -r opt/intel/compilers_and_libraries_${version}/linux/compiler/lib/intel64_lin/*.so* $out/lib/
cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/lib/intel64_lin/*.so* $out/lib/
cp -r opt/intel/compilers_and_libraries_${version}/linux/mkl/bin/pkgconfig/*dynamic*.pc $out/lib/pkgconfig
'');

# fixDarwinDylibName fails for libmkl_cdft_core.dylib because the
# larger updated load commands do not fit. Use install_name_tool
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/csv/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

buildDunePackage rec {
pname = "csv";
version = "2.2";
version = "2.4";

src = fetchurl {
url = "https://github.com/Chris00/ocaml-${pname}/releases/download/${version}/csv-${version}.tbz";
sha256 = "1llwjdi14vvfy4966crapibq0djii71x47b0yxhjcl5jw4xnsaha";
sha256 = "13m9n8mdss6jfbiw7d5bybxn4n85vmg4zw7dc968qrgjfy0w9zhk";
};

meta = {
6 changes: 3 additions & 3 deletions pkgs/development/tools/ocaml/cppo/default.nix
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ assert stdenv.lib.versionAtLeast ocaml.version "3.12";

let param =
if stdenv.lib.versionAtLeast ocaml.version "4.02" then {
version = "1.6.6";
sha256 = "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs";
version = "1.6.5";
sha256 = "03c0amszy28shinvz61hm340jz446zz5763a1pdqlza36kwcj0p0";
buildInputs = [ dune ];
extra = {
inherit (dune) installPhase;
@@ -31,7 +31,7 @@ stdenv.mkDerivation ({
name = "${pname}-${param.version}";

src = fetchFromGitHub {
owner = "ocaml-community";
owner = "mjambon";
repo = pname;
rev = "v${param.version}";
inherit (param) sha256;
10 changes: 7 additions & 3 deletions pkgs/development/tools/poetry/default.nix
Original file line number Diff line number Diff line change
@@ -33,9 +33,13 @@ poetry2nix.mkPoetryApplication {
mkdir -p $out/bin
cat > $out/bin/poetry <<EOF
#!${runtimeShell}
export PYTHONPATH=$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH
exec ${python.interpreter} -m poetry "\$@"
#!${python.interpreter}
import sys
if __name__ == '__main__':
sys.path.append("$out/lib/${python.libPrefix}/site-packages")
from poetry.console import main
main()
EOF
chmod +x $out/bin/poetry
16 changes: 15 additions & 1 deletion pkgs/misc/vim-plugins/overrides.nix
Original file line number Diff line number Diff line change
@@ -17,12 +17,15 @@
# deoplete-khard dependency
, khard

# vim-go denpencies
# vim-go dependencies
, asmfmt, delve, errcheck, godef, golint
, gomodifytags, gotags, gotools, go-motion
, gnused, reftools, gogetdoc, gometalinter
, impl, iferr, gocode, gocode-gomod, go-tools

# direnv-vim dependencies
, direnv

# vCoolor dependency
, gnome3
}:
@@ -100,6 +103,14 @@ self: super: {
'';
});

direnv-vim = super.direnv-vim.overrideAttrs(oa: {
preFixup = oa.preFixup or "" + ''
substituteInPlace $out/share/vim-plugins/direnv-vim/autoload/direnv.vim \
--replace "let s:direnv_cmd = get(g:, 'direnv_cmd', 'direnv')" \
"let s:direnv_cmd = get(g:, 'direnv_cmd', '${lib.getBin direnv}/bin/direnv')"
'';
});

clighter8 = super.clighter8.overrideAttrs(old: {
preFixup = ''
sed "/^let g:clighter8_libclang_path/s|')$|${llvmPackages.clang.cc.lib}/lib/libclang.so')|" \
@@ -402,6 +413,9 @@ self: super: {
dependencies = with super; [ vim-addon-mw-utils tlib_vim ];
});

vim-terraform = super.vim-terraform.overrideAttrs(oa: {
patches = (oa.patches or []) ++ lib.singleton ./vim-terraform-fix-event.patch;
});

vim-wakatime = super.vim-wakatime.overrideAttrs(old: {
buildInputs = [ python ];
23 changes: 23 additions & 0 deletions pkgs/misc/vim-plugins/vim-terraform-fix-event.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From cad4661952ad7983ece6d6486f0f68d437037015 Mon Sep 17 00:00:00 2001
From: "Wael M. Nasreddine" <wael.nasreddine@gmail.com>
Date: Thu, 2 Jan 2020 13:31:13 -0800
Subject: [PATCH] Put the autocmd filetypedetect in an augroup

---
ftdetect/terraform.vim | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ftdetect/terraform.vim b/ftdetect/terraform.vim
index 5919422..24bc731 100644
--- a/ftdetect/terraform.vim
+++ b/ftdetect/terraform.vim
@@ -1,5 +1,8 @@
" By default, Vim associates .tf files with TinyFugue - tell it not to.
-autocmd! filetypedetect BufRead,BufNewFile *.tf
+augroup filetypedetect
+ au BufRead,BufNewFile *.tf set filetype=terraform
+augroup END
+
autocmd BufRead,BufNewFile *.tf set filetype=terraform
autocmd BufRead,BufNewFile *.tfvars set filetype=terraform
autocmd BufRead,BufNewFile *.tfstate set filetype=json
42 changes: 42 additions & 0 deletions pkgs/os-specific/linux/ddcci/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ stdenv, fetchFromGitLab, kernel }:

stdenv.mkDerivation rec {
pname = "ddcci-driver";
version = "0.3.2";
name = "${pname}-${kernel.version}-${version}";

src = fetchFromGitLab {
owner = "${pname}-linux";
repo = "${pname}-linux";
rev = "v${version}";
sha256 = "0jl4l3vvxn85cbqr80p6bgyhf2vx9kbadrwx086wkj9ni8k6x5m6";
};

hardeningDisable = [ "pic" ];

nativeBuildInputs = kernel.moduleBuildDependencies;

prePatch = ''
substituteInPlace ./ddcci/Makefile \
--replace 'SUBDIRS="$(src)"' 'M=$(PWD)' \
--replace depmod \#
substituteInPlace ./ddcci-backlight/Makefile \
--replace 'SUBDIRS="$(src)"' 'M=$(PWD)' \
--replace depmod \#
'';

makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"KVER=${kernel.modDirVersion}"
"KERNEL_MODLIB=$(out)/lib/modules/${kernel.modDirVersion}"
"INCLUDEDIR=$(out)/include"
];

meta = with stdenv.lib; {
description = "Kernel module driver for DDC/CI monitors";
homepage = "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux";
license = licenses.gpl2;
maintainers = with maintainers; [ bricewge ];
platforms = platforms.linux;
};
}
9 changes: 9 additions & 0 deletions pkgs/servers/http/nginx/modules.nix
Original file line number Diff line number Diff line change
@@ -258,6 +258,15 @@ in
inputs = [ pkgs.pam ];
};

pinba = {
src = fetchFromGitHub {
owner = "tony2001";
repo = "ngx_http_pinba_module";
rev = "28131255d4797a7e2f82a6a35cf9fc03c4678fe6";
sha256 = "00fii8bjvyipq6q47xhjhm3ylj4rhzmlk3qwxmfpdn37j7bc8p8c";
};
};

push-stream ={
src = fetchFromGitHub {
owner = "wandenberg";
4 changes: 2 additions & 2 deletions pkgs/servers/web-apps/wordpress/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

stdenv.mkDerivation rec {
pname = "wordpress";
version = "5.2.4";
version = "5.3.2";

src = fetchurl {
url = "https://wordpress.org/${pname}-${version}.tar.gz";
sha256 = "1vf5220rw37sxvzy6yxn636ip2lx4bkc84z7q8rdwcs2wkv6md1p";
sha256 = "0rq1j431x0fvcpry721hxglszql4c80qr26fglcdlm51h9z6i1p1";
};

installPhase = ''
12 changes: 4 additions & 8 deletions pkgs/tools/filesystems/sshfs-fuse/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
{ stdenv, fetchFromGitHub, fetchpatch, meson, pkgconfig, ninja, docutils, makeWrapper
{ stdenv, fetchFromGitHub
, meson, pkgconfig, ninja, docutils, makeWrapper
, fuse3, glib
, which, python3Packages
, openssh
}:

stdenv.mkDerivation rec {
version = "3.6.0";
version = "3.7.0";
pname = "sshfs-fuse";

src = fetchFromGitHub {
owner = "libfuse";
repo = "sshfs";
rev = "sshfs-${version}";
sha256 = "0l4a6azsp920fhl4safxjam6821b77zxhw8mjgm33f60pksslww0";
sha256 = "119qvjaai3nqs2psqk2kv4gxjchrnrcfnmlwk7yxnj3v59pgyxhv";
};

patches = [ (fetchpatch {
url = "https://github.com/libfuse/sshfs/commit/a548abd1f33a8423bec72724a5f48eb96fa55dd2.patch";
sha256 = "19p94aw7nvydd7p2bd1f5cqhlhhamjhda31k22sg06xaqyl893jm";
}) ];

nativeBuildInputs = [ meson pkgconfig ninja docutils makeWrapper ];
buildInputs = [ fuse3 glib ];
checkInputs = [ which python3Packages.pytest ];
6 changes: 2 additions & 4 deletions pkgs/tools/misc/fzf/default.nix
Original file line number Diff line number Diff line change
@@ -36,15 +36,13 @@ buildGoModule rec {
'';

postInstall = ''
name="${pname}-${version}"
cp $src/bin/fzf-tmux $out/bin
mkdir -p $man/share/man
cp -r $src/man/man1 $man/share/man
mkdir -p $out/share/vim-plugins/$name
cp -r $src/plugin $out/share/vim-plugins/$name
mkdir -p $out/share/vim-plugins/${pname}
cp -r $src/plugin $out/share/vim-plugins/${pname}
cp -R $src/shell $out/share/fzf
cat <<SCRIPT > $out/bin/fzf-share
33 changes: 33 additions & 0 deletions pkgs/tools/misc/tmux-xpanes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ stdenv, fetchFromGitHub, openssl, perl }:

stdenv.mkDerivation rec {
pname = "tmux-xpanes";
version = "4.1.0";

src = fetchFromGitHub {
owner = "greymd";
repo = pname;
rev = "v${version}";
sha256 = "11yz6rh2ckd1z8q80n8giv2gcz2i22fgf3pnfxq96qrzflb0d96a";
};

buildInputs = [ openssl perl ];

installPhase = ''
# Create directories.
install -m 755 -d $out/bin/
install -m 755 -d $out/share/man/man1/
# Perform installation.
install -m 755 bin/* $out/bin/
install -m 644 man/*.1 $out/share/man/man1/
'';

meta = with stdenv.lib; {
description = "tmux-based terminal divider";
homepage = "https://github.com/greymd/tmux-xpanes";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ monsieurp ];
};
}
4 changes: 2 additions & 2 deletions pkgs/tools/security/aws-okta/default.nix
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@

buildGoPackage rec {
pname = "aws-okta";
version = "0.20.1";
version = "0.26.3";

goPackagePath = "github.com/segmentio/aws-okta";

src = fetchFromGitHub {
owner = "segmentio";
repo = "aws-okta";
rev = "v${version}";
sha256 = "084lb9rp04vbpzmvsb2l92a4gp7c8g28x4xsagzwkqqpwi3fd15d";
sha256 = "0n6xm3yv0lxfapchzfrqi05hk918n4lh1hcp7gq7hybam93rld96";
};

goDeps = ./deps.nix;
17 changes: 7 additions & 10 deletions pkgs/tools/video/rav1e/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ rustPlatform, fetchFromGitHub, fetchurl, stdenv, lib, unzip, nasm }:
{ rustPlatform, fetchFromGitHub, fetchurl, stdenv, lib, nasm }:

rustPlatform.buildRustPackage rec {
pname = "rav1e";
version = "0.2.0";
version = "0.2.1";

src = stdenv.mkDerivation rec {
name = "${pname}-${version}-source";
@@ -11,24 +11,21 @@ rustPlatform.buildRustPackage rec {
owner = "xiph";
repo = "rav1e";
rev = "v${version}";
sha256 = "0sij9hwnar27gcwvfcjbhgyrhw99zjv8gr9s9gshqi766p5dy51a";
sha256 = "1lv8g1vw11lanyx6lqr34hb6m4x1fvwb60kgg5nk8s8hgdr18i0y";
};
cargoLock = fetchurl {
url = "https://github.com/xiph/rav1e/releases/download/v${version}/rav1e-${version}.zip";
sha256 = "1i48c7mvc9q20d76p2rpxva551249m3p52q2z1g9sj4xzpyyk41m";
url = "https://github.com/xiph/rav1e/releases/download/v${version}/Cargo.lock";
sha256 = "1d51wcm537pzfmq48vsv87dwf035yl03qkfc0372gchpv079561w";
};

nativeBuildInputs = [ unzip ];

installPhase = ''
mkdir -p $out
cp -R ./* $out/
unzip ${cargoLock}
cp ./Cargo.lock $out/Cargo.lock
cp ${cargoLock} $out/Cargo.lock
'';
};

cargoSha256 = "1z0xrcq4mx6gpjyqh1csa424sxmx54z3x7ij3w2063h6s2fv9jy3";
cargoSha256 = "0frr4sx05pwvj9gmlvmis6lrnbwk3x579fv3kw38374jy33nrr6z";

nativeBuildInputs = [ nasm ];

4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -6752,6 +6752,8 @@ in

tmuxinator = callPackage ../tools/misc/tmuxinator { };

tmux-xpanes = callPackage ../tools/misc/tmux-xpanes { };

tmuxPlugins = recurseIntoAttrs (callPackage ../misc/tmux-plugins { });

tmsu = callPackage ../tools/filesystems/tmsu { };
@@ -16378,6 +16380,8 @@ in

cpupower = callPackage ../os-specific/linux/cpupower { };

ddcci-driver = callPackage ../os-specific/linux/ddcci { };

deepin-anything = callPackage ../os-specific/linux/deepin-anything { };

digimend = callPackage ../os-specific/linux/digimend { };
9 changes: 5 additions & 4 deletions pkgs/top-level/static.nix
Original file line number Diff line number Diff line change
@@ -55,15 +55,15 @@ self: super: let
removeUnknownConfigureFlags = f: with self.lib;
remove "--disable-shared"
(remove "--enable-static" f);

ocamlFixPackage = b:
b.overrideAttrs (o: {
configurePlatforms = [ ];
configureFlags = removeUnknownConfigureFlags (o.configureFlags or [ ]);
buildInputs = o.buildInputs ++ o.nativeBuildInputs or [ ];
propagatedNativeBuildInputs = o.propagatedBuildInputs or [ ];
});

ocamlStaticAdapter = _: super:
self.lib.mapAttrs
(_: p: if p ? overrideAttrs then ocamlFixPackage p else p)
@@ -153,6 +153,7 @@ in {
static = true;
};
openblas = super.openblas.override { enableStatic = true; };
mkl = super.mkl.override { enableStatic = true; };
nix = super.nix.override { withAWS = false; };
# openssl 1.1 doesn't compile
openssl = super.openssl_1_0_2.override {
@@ -209,7 +210,7 @@ in {
kmod = super.kmod.override {
withStatic = true;
};

curl = super.curl.override {
# a very sad story: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439039
gssSupport = false;
@@ -241,6 +242,6 @@ in {
ocaml-ng = self.lib.mapAttrs (_: set:
if set ? overrideScope' then set.overrideScope' ocamlStaticAdapter else set
) super.ocaml-ng;

python27 = super.python27.override { static = true; };
}