!kjdutkOsheZdjqYmqp:nixos.org

Empty Room

1645 Members
350 Servers

Load older messages


SenderMessageTime
21 May 2021
@jojosch:jswc.dejojosch joined the room.16:09:31
@gkaply532:matrix.orggkaply532 joined the room.16:16:03
@ryantm:matrix.orgryantmJust 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
@sternenseemann:systemli.orgsterni
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
@sternenseemann:systemli.orgsterni 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
@sternenseemann:systemli.orgsterni
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
@sternenseemann:systemli.orgsternioh and the main thing it uses, freeform types, is documented here: https://nixos.org/manual/nixos/stable/index.html#sec-freeform-modules16:40:58
@sternenseemann:systemli.orgsterni
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
@sternenseemann:systemli.orgsterni * the formats are in pkgs.format / pkgs/pkgs-lib/formats.nix 16:41:38
@siraben:matrix.orgsirabenWe need some moderation in #nixos on Freenode still, it seems16:56:00
@siraben:matrix.orgsirabenor we could go the way of other projects (e.g. #guix) and close the channel completely16:56:23
@adisbladis:matrix.orgadisbladis
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:matrix.orgSyntheticaI can't let the idea of a busyboxStdenv go...17:00:29
@samueldr:matrix.orgsamueldr 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:matrix.orgsiraben
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:matrix.orgsirabenmaybe set +r ?17:02:09
@siraben:matrix.orgsiraben
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:matrix.orgSyntheticaLike normal stdenv but with all tools that busybox provides instead of the GNU ones17:03:23
@synthetica:matrix.orgSyntheticaNot sure how the actual implementation would work17:03:40
@sephi:matrix.orgsephi
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:matrix.orgsephi
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:matrix.orgsephi *

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:matrix.orgsephi(it’s really nice to be able to paste code directly without having to use a paste service)17:13:52
@sternenseemann:systemli.orgsterniohhh17:16:15
@sternenseemann:systemli.orgsterniseems like ocamlnet is propagated which also has a shell package and it somehow takes priority over ocamlPackages.shell17:16:34
@sternenseemann:systemli.orgsterniprobably ordering related17:16:39
@sternenseemann:systemli.orgsterni A workaround for this is probably to add shell as the first buildInput so it comes first in OCAMLPATH 17:17:57
@sternenseemann:systemli.orgsterniyeah, that gives different compile errors17:18:13
@sephi:matrix.orgsephiOh boy, you’re right17:18:22
@sternenseemann:systemli.orgsterninot 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 issue17:18:37

Show newer messages


Back to Room ListRoom Version: 6