Code Monkey home page Code Monkey logo

Comments (16)

matthew-piziak avatar matthew-piziak commented on July 30, 2024 1

I think this is good to close now, but I look forward to lorri being stabilized and submitted to nixpkgs.

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

@grahamc Do you know what causes this?

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

Any updates here?

from lorri.

 avatar commented on July 30, 2024

It looks like you need Rust 1.31 or higher. Is that relevant?

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

For the record, I have no local Rust installation, so it's not a matter of conflict there.

from lorri.

grahamc avatar grahamc commented on July 30, 2024

Ehh this is really strange. Can you run:

nix-shell -p nix-info --run "nix-info -m"

and paste the result?

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

Do you get the same error on current master?

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

@grahamc Here's mine:

 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.114, NixOS, 18.09.2543.41245517a98 (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.1.3`
 - channels(matt): `""`
 - channels(root): `"nixpkgs-18.09.2543.41245517a98"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

@Profpatsch If I use this overlay:

self: super: {
  lorri =
    let src =
      (super.fetchFromGitHub {
        owner = "target";
        repo = "lorri";
        rev = "d4af845fa4ba4243d57ea8d9a3600ec3c82b5476";
        sha256 = "0bdysnvl4i4g3hfp333i5q82sc7vdh23rzh8nfnr3mysw853v7rq";
      });
    in super.callPackage src { inherit src; };
}

then I get

fixed-output derivation produced path '/nix/store/yi9yvh66jmrg2vy18x4zr885268k6fg7-lorri-vendor' with sha256 hash '0lx4r05hf3snby5mky7drbnp006dzsg9ypsi4ni5wfl0hffx3a8g' instead of the expected hash '04v9k81rvnv3n3n5s1jwqxgq1sw83iim322ki28q1qp5m5z7canv'

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

@matthew-piziak Can you try overriding the cargoSha256 field in lorriโ€™s default.nix with the expected hash?

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

Here's what I have now:

self: super: {
  lorri =
    let src =
      (super.fetchFromGitHub {
        owner = "target";
        repo = "lorri";
        rev = "e68e0f51a864b746372555b7f5482977c6e9556d";
        sha256 = "1a3gihv2dqqwds7ba6krdhamv93np1g2wsvbn56vbc5q0zm5cybx";
      });
      cargoSha256 = "0lx4r05hf3snby5mky7drbnp006dzsg9ypsi4ni5wfl0hffx3a8g";
    in super.callPackage src { inherit src; inherit cargoSha256; };
}

It fails with this:

error: anonymous function at /nix/store/8ascra4n0xds654r0ml25nqyy3n13gw0-source/default.nix:1:1 called with unexpected argument 'cargoSha256'

What's the correct way to perform the override?

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

This didn't work for me either:

self: super: {
  lorri =
    let src =
      (super.fetchFromGitHub {
        owner = "target";
        repo = "lorri";
        rev = "e68e0f51a864b746372555b7f5482977c6e9556d";
        sha256 = "1a3gihv2dqqwds7ba6krdhamv93np1g2wsvbn56vbc5q0zm5cybx";
      });
      cargoSha256 = "0lx4r05hf3snby5mky7drbnp006dzsg9ypsi4ni5wfl0hffx3a8g";
    in (super.callPackage src { inherit src; }).overrideAttrs (orig: { inherit cargoSha256; });
}

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

Neither did this:

self: super: {
  lorri =
    let src =
      (super.fetchFromGitHub {
        owner = "target";
        repo = "lorri";
        rev = "e68e0f51a864b746372555b7f5482977c6e9556d";
        sha256 = "1a3gihv2dqqwds7ba6krdhamv93np1g2wsvbn56vbc5q0zm5cybx";
      });
      cargoSha256 = "0lx4r05hf3snby5mky7drbnp006dzsg9ypsi4ni5wfl0hffx3a8g";
    in
    super.lorri.overrideAttrs{ inherit src; inherit cargoSha256; };
}

It fails with error: lorri is not stable yet..

from lorri.

sveitser avatar sveitser commented on July 30, 2024

I wasn't able to do it with an override either but changing cargoSha256 it in default.nix fixes the hash mismatch.

sveitser@91fd3be

self: super: {
  lorri =
    let src =
      (super.fetchFromGitHub {
        owner = "sveitser";
        repo = "lorri";
        rev = "91fd3becff4d0564c8584700111ae8a9364b78fc";
        sha256 = "0kvscn48rpggfsxa8wil5jxxmz5c1jsynpm0jhvknsal8vrv991c";
      });
    in super.callPackage src { inherit src; };
}

from lorri.

matthew-piziak avatar matthew-piziak commented on July 30, 2024

That works!

from lorri.

Profpatsch avatar Profpatsch commented on July 30, 2024

Awesome, is there anything specific we need to do from our side?

from lorri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.