| 21 May 2021 |
| jojosch joined the room. | 16:09:31 |
| gkaply532 joined the room. | 16:16:03 |
ryantm | Just made a new release of mmdoc with improved styling. Here's the parts of the nixpkgs manual written in CommonMark built with mmdoc: https://ryantm.github.io/nixpkgs/ | 16:19:48 |
sterni | In reply to @sephi:matrix.org
Here’s my derivation:
let
pkgs = import <nixos-unstable> { };
in pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = pname;
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = [
pkgs.zlib
pkgs.pkg-config-unwrapped
pkgs.ocamlPackages.ppx_deriving
pkgs.ocamlPackages.ppx_deriving_yojson
pkgs.ocamlPackages.ppx_sexp_conv
pkgs.ocamlPackages.ppx_jane
pkgs.ocamlPackages.ppx_expect
pkgs.ocamlPackages.dune-configurator
pkgs.ocamlPackages.lwt
pkgs.ocamlPackages.parany
pkgs.ocamlPackages.patience_diff
pkgs.ocamlPackages.core
pkgs.ocamlPackages.toml
pkgs.ocamlPackages.shell
pkgs.ocamlPackages.cohttp-lwt-unix
pkgs.ocamlPackages.mparser
pkgs.ocamlPackages.opium
pkgs.ocamlPackages.textutils
pkgs.ocamlPackages.jst-config
pkgs.ocamlPackages.shell
];
buildPhase = "dune build";
}
building all packages at once won't work since the OCAMLPATH resolution is affected by that. You need to build comby-kernel in a separate derivation | 16:34:49 |
sterni | seems like you'll have to package mparser-pcre for that, shouldn't be to hard we already have mparser in nixpkgs | 16:35:07 |
sterni | In reply to @andi:kack.it Do we have documentation on the RFC42 settings stuff and how those new helper functions are supposed to be used? Not really, but the formats are in pkgs.format / pkgs/pkgs-lib/formats.nix | 16:38:23 |
sterni | oh and the main thing it uses, freeform types, is documented here: https://nixos.org/manual/nixos/stable/index.html#sec-freeform-modules | 16:40:58 |
sterni | In reply to @andi:kack.it Do we have documentation on the RFC42 settings stuff and how those new helper functions are supposed to be used? * ~~Not really, but~~ the formats are in pkgs.format / pkgs/pkgs-lib/formats.nix | 16:41:34 |
sterni | * the formats are in pkgs.format / pkgs/pkgs-lib/formats.nix | 16:41:38 |
siraben | We need some moderation in #nixos on Freenode still, it seems | 16:56:00 |
siraben | or we could go the way of other projects (e.g. #guix) and close the channel completely | 16:56:23 |
adisbladis | In reply to @siraben:matrix.org or we could go the way of other projects (e.g. #guix) and close the channel completely I just did https://logs.nix.samueldr.com/nixos-emacs/2021-05-21#5006015; for the #nixos-emacs channel | 16:59:36 |
Synthetica | I can't let the idea of a busyboxStdenv go... | 17:00:29 |
samueldr | I personally think it's fine to give enough time for the bigger channels for people to be able to ask and figure out where everyone went, but yes, I agree closing down the channels is needed at some point not too far out | 17:00:36 |
siraben | In reply to @siraben:matrix.org We need some moderation in #nixos on Freenode still, it seems by which I mean there's spam ongoing right now | 17:01:57 |
siraben | maybe set +r ? | 17:02:09 |
siraben | In reply to @synthetica:matrix.org I can't let the idea of a busyboxStdenv go... What would this look like? | 17:02:50 |
Synthetica | Like normal stdenv but with all tools that busybox provides instead of the GNU ones | 17:03:23 |
Synthetica | Not sure how the actual implementation would work | 17:03:40 |
sephi | In reply to @sternenseemann:systemli.org seems like you'll have to package mparser-pcre for that, shouldn't be to hard we already have mparser in nixpkgs Yeah I noticed that. Thanks for the hint about comby-kernel, building it in a separate deviation fixed an error. The only remaining error is the one with shell.filename_extended which I can’t figure out how to fix. I’m still getting:
building '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv'...
unpacking sources
unpacking source archive /nix/store/zckb9y4gsxpn913f4fbdsh4fr46i9di0-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
File "lib/app/interactive/dune", line 5, characters 51-74:
5 | (libraries comby-kernel comby.configuration core shell.filename_extended lwt lwt.unix))
^^^^^^^^^^^^^^^^^^^^^^^
Error: Library "shell.filename_extended" not found.
Hint: try:
dune external-lib-deps --missing -p comby -j 4 @install
builder for '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv' failed with exit code 1
error: build of '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv' failed
Here’s the code:
let
pkgs = import <nixos-unstable> { };
ocamlPcre = pkgs.ocamlPackages.buildDunePackage rec {
pname = "pcre";
version = "7.4.6";
useDune2 = true;
minimumOcamlVersion = "4.12.0";
src = pkgs.fetchFromGitHub {
owner = "mmottl";
repo = "pcre-ocaml";
rev = version;
sha256 = "11mck879p5zvkghps4ky8yslm0isgz52d84adl0dmcfxv2ibvcym";
};
buildInputs = [ pkgs.pcre pkgs.ocamlPackages.dune-configurator ];
};
mparserPcre = pkgs.ocamlPackages.buildDunePackage rec {
pname = "mparser-pcre";
version = "1.3";
useDune2 = true;
src = pkgs.fetchFromGitHub {
owner = "murmour";
repo = "mparser";
rev = version;
sha256 = "16j19v16r42gcsii6a337zrs5cxnf12ig0vaysxyr7sq5lplqhkx";
};
buildInputs = [ ocamlPcre pkgs.ocamlPackages.mparser ];
};
combyBuildInputs = [
pkgs.zlib
pkgs.pkg-config-unwrapped
pkgs.ocamlPackages.ppx_deriving
pkgs.ocamlPackages.ppx_deriving_yojson
pkgs.ocamlPackages.ppx_sexp_conv
pkgs.ocamlPackages.ppx_jane
pkgs.ocamlPackages.ppx_expect
pkgs.ocamlPackages.dune-configurator
pkgs.ocamlPackages.lwt
pkgs.ocamlPackages.parany
pkgs.ocamlPackages.patience_diff
pkgs.ocamlPackages.core
pkgs.ocamlPackages.toml
pkgs.ocamlPackages.cohttp-lwt-unix
pkgs.ocamlPackages.mparser
pkgs.ocamlPackages.opium
pkgs.ocamlPackages.textutils
pkgs.ocamlPackages.jst-config
pkgs.ocamlPackages.shell
pkgs.ocamlPackages.benchmark
mparserPcre
ocamlPcre
];
combyKernel = pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby-kernel";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = "comby";
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = combyBuildInputs;
};
in pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = pname;
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = combyBuildInputs ++ [ combyKernel ];
}
| 17:12:08 |
sephi | In reply to @sternenseemann:systemli.org seems like you'll have to package mparser-pcre for that, shouldn't be to hard we already have mparser in nixpkgs * Yeah I noticed that. Thanks for the hint about comby-kernel, building it in a separate deviation fixed an error. The only remaining error is the one with shell.filename_extended which I can’t figure out how to fix. I’m still getting:
building '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv'...
unpacking sources
unpacking source archive /nix/store/zckb9y4gsxpn913f4fbdsh4fr46i9di0-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
File "lib/app/interactive/dune", line 5, characters 51-74:
5 | (libraries comby-kernel comby.configuration core shell.filename_extended lwt lwt.unix))
^^^^^^^^^^^^^^^^^^^^^^^
Error: Library "shell.filename_extended" not found.
Hint: try:
dune external-lib-deps --missing -p comby -j 4 @install
builder for '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv' failed with exit code 1
error: build of '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv' failed
Here’s the code:
let
pkgs = import <nixos-unstable> { };
ocamlPcre = pkgs.ocamlPackages.buildDunePackage rec {
pname = "pcre";
version = "7.4.6";
useDune2 = true;
minimumOcamlVersion = "4.12.0";
src = pkgs.fetchFromGitHub {
owner = "mmottl";
repo = "pcre-ocaml";
rev = version;
sha256 = "11mck879p5zvkghps4ky8yslm0isgz52d84adl0dmcfxv2ibvcym";
};
buildInputs = [ pkgs.pcre pkgs.ocamlPackages.dune-configurator ];
};
mparserPcre = pkgs.ocamlPackages.buildDunePackage rec {
pname = "mparser-pcre";
version = "1.3";
useDune2 = true;
src = pkgs.fetchFromGitHub {
owner = "murmour";
repo = "mparser";
rev = version;
sha256 = "16j19v16r42gcsii6a337zrs5cxnf12ig0vaysxyr7sq5lplqhkx";
};
buildInputs = [ ocamlPcre pkgs.ocamlPackages.mparser ];
};
combyBuildInputs = [
pkgs.zlib
pkgs.pkg-config-unwrapped
pkgs.ocamlPackages.ppx_deriving
pkgs.ocamlPackages.ppx_deriving_yojson
pkgs.ocamlPackages.ppx_sexp_conv
pkgs.ocamlPackages.ppx_jane
pkgs.ocamlPackages.ppx_expect
pkgs.ocamlPackages.dune-configurator
pkgs.ocamlPackages.lwt
pkgs.ocamlPackages.parany
pkgs.ocamlPackages.patience_diff
pkgs.ocamlPackages.core
pkgs.ocamlPackages.toml
pkgs.ocamlPackages.cohttp-lwt-unix
pkgs.ocamlPackages.mparser
pkgs.ocamlPackages.opium
pkgs.ocamlPackages.textutils
pkgs.ocamlPackages.jst-config
pkgs.ocamlPackages.shell
pkgs.ocamlPackages.benchmark
mparserPcre
ocamlPcre
];
combyKernel = pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby-kernel";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = "comby";
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = combyBuildInputs;
};
in pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = pname;
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = combyBuildInputs ++ [ combyKernel ];
}
| 17:12:18 |
sephi | * Yeah I noticed that. Thanks for the hint about comby-kernel, building it in a separate deviation fixed an error. The only remaining error is the one with shell.filename_extended which I can’t figure out how to fix. I’m still getting:
building '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv'...
unpacking sources
unpacking source archive /nix/store/zckb9y4gsxpn913f4fbdsh4fr46i9di0-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
File "lib/app/interactive/dune", line 5, characters 51-74:
5 | (libraries comby-kernel comby.configuration core shell.filename_extended lwt lwt.unix))
^^^^^^^^^^^^^^^^^^^^^^^
Error: Library "shell.filename_extended" not found.
Hint: try:
dune external-lib-deps --missing -p comby -j 4 @install
builder for '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv' failed with exit code 1
error: build of '/nix/store/amm4xb3yca9wn0prfxkzkj1jbq1z64g1-ocaml4.12.0-comby-1.5.1.drv' failed
Here’s the code:
let
pkgs = import <nixos-unstable> { };
ocamlPcre = pkgs.ocamlPackages.buildDunePackage rec {
pname = "pcre";
version = "7.4.6";
useDune2 = true;
minimumOcamlVersion = "4.12.0";
src = pkgs.fetchFromGitHub {
owner = "mmottl";
repo = "pcre-ocaml";
rev = version;
sha256 = "11mck879p5zvkghps4ky8yslm0isgz52d84adl0dmcfxv2ibvcym";
};
buildInputs = [ pkgs.pcre pkgs.ocamlPackages.dune-configurator ];
};
mparserPcre = pkgs.ocamlPackages.buildDunePackage rec {
pname = "mparser-pcre";
version = "1.3";
useDune2 = true;
src = pkgs.fetchFromGitHub {
owner = "murmour";
repo = "mparser";
rev = version;
sha256 = "16j19v16r42gcsii6a337zrs5cxnf12ig0vaysxyr7sq5lplqhkx";
};
buildInputs = [ ocamlPcre pkgs.ocamlPackages.mparser ];
};
combyBuildInputs = [
pkgs.zlib
pkgs.pkg-config-unwrapped
pkgs.ocamlPackages.ppx_deriving
pkgs.ocamlPackages.ppx_deriving_yojson
pkgs.ocamlPackages.ppx_sexp_conv
pkgs.ocamlPackages.ppx_jane
pkgs.ocamlPackages.ppx_expect
pkgs.ocamlPackages.dune-configurator
pkgs.ocamlPackages.lwt
pkgs.ocamlPackages.parany
pkgs.ocamlPackages.patience_diff
pkgs.ocamlPackages.core
pkgs.ocamlPackages.toml
pkgs.ocamlPackages.cohttp-lwt-unix
pkgs.ocamlPackages.mparser
pkgs.ocamlPackages.opium
pkgs.ocamlPackages.textutils
pkgs.ocamlPackages.jst-config
pkgs.ocamlPackages.shell
pkgs.ocamlPackages.benchmark
mparserPcre
ocamlPcre
];
combyKernel = pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby-kernel";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = "comby";
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = combyBuildInputs;
};
in pkgs.ocamlPackages.buildDunePackage rec {
pname = "comby";
version = "1.5.1";
useDune2 = true;
minimumOcamlVersion = "4.11.0";
src = pkgs.fetchFromGitHub {
owner = "comby-tools";
repo = pname;
rev = version;
sha256 = "1ipfrr6n1jyyryhm9zpn8wwgzfac1zgbjdjzrm00qcwc17r8x2hf";
};
buildInputs = combyBuildInputs ++ [ combyKernel ];
}
| 17:12:27 |
sephi | (it’s really nice to be able to paste code directly without having to use a paste service) | 17:13:52 |
sterni | ohhh | 17:16:15 |
sterni | seems like ocamlnet is propagated which also has a shell package and it somehow takes priority over ocamlPackages.shell | 17:16:34 |
sterni | probably ordering related | 17:16:39 |
sterni | A workaround for this is probably to add shell as the first buildInput so it comes first in OCAMLPATH | 17:17:57 |
sterni | yeah, that gives different compile errors | 17:18:13 |
sephi | Oh boy, you’re right | 17:18:22 |
sterni | not certain if there is a better way to deal with such name clash issues, maybe file a bug on github, so we can discuss this issue | 17:18:37 |