Skip to content

Adding libxslt as a cross_input appears to not work. #11

@seanybaggins

Description

@seanybaggins

Here is my nix/build.nix

src: config_name: env:
let
  payload = env.make_derivation {
    builder = ../Scripts/builder.sh;
    inherit src;
    native_inputs = with env.nixpkgs; [
      git
      bear
      coreutils
      env.qt
      curl.dev
      libxslt.dev
    ];
    cross_inputs = with env.nixpkgs; [
      env.qt
      libxslt.dev
      sol2
      lua
      libusb1
      sqlcipher
      xmlsec
      avahi
      boost171
      libtool
    ];
  };

  license_set = env.libusbp.license_set // env.global_license_set;

  license = env.make_derivation {
    name = "license";
    builder.ruby = ./license_builder.rb;
    inherit src;
    commit = builtins.getEnv "commit";
    nixcrpkgs_commit = builtins.getEnv "nixcrpkgs_commit";
    nixpkgs_commit = builtins.getEnv "nixpkgs_commit";
    license_names = builtins.attrNames license_set;
    licenses = builtins.attrValues license_set;
  };

  installer = env.make_derivation {
    name = "${config_name}-installer";
    builder.ruby =
      if env.os == "windows" then ./windows_installer_builder.rb
      else if env.os == "linux" then ./linux_installer_builder.rb
      else if env.os == "macos" then ./macos_installer_builder.rb
      else throw "?";
    inherit src config_name payload license;
    libusbp = env.libusbp;
  };

in
payload // { inherit env license installer; }
> nix build '.#win32'
warning: Git tree '/home/sean/ommit/ommit' is dirty
error: builder for '/nix/store/h857q0jyc62x8sqpk16w161x0d3myprm-package-i686-w64-mingw32.drv' failed with exit code 2;
       last 10 log lines:
       > Build desktop app (version: 91.91.91-dev.0)...
       > /build/ommit /build
       > Info: creating stash file /build/build-ommit/.qmake.stash
       > /nix/store/jjrbagr069zpqm60yzmmab7swamg0vk0-qtbase-5.12.12-i686-w64-mingw32/bin/qmake -o Makefile.sql /nix/store/sb6m5g4hmmhg8h4k2kpvfpkb6xkgv6m1-8k2kychgbk6wvi1r15f2ha0hrd3c6cxc-source/ommit/sql.pro WITH_COVERAGE_REPORT=1
       > Project ERROR: libexslt development package not found
       > make: *** [Makefile:70: sub-sql-pro-qmake_all] Error 3
       For full logs, run 'nix log /nix/store/h857q0jyc62x8sqpk16w161x0d3myprm-package-i686-w64-mingw32.drv'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions