Comments (16)
I think this is good to close now, but I look forward to lorri
being stabilized and submitted to nixpkgs
.
from lorri.
@grahamc Do you know what causes this?
from lorri.
Any updates here?
from lorri.
It looks like you need Rust 1.31 or higher. Is that relevant?
from lorri.
For the record, I have no local Rust installation, so it's not a matter of conflict there.
from lorri.
Ehh this is really strange. Can you run:
nix-shell -p nix-info --run "nix-info -m"
and paste the result?
from lorri.
Do you get the same error on current master?
from lorri.
@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.
@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.
@matthew-piziak Can you try overriding the cargoSha256
field in lorriโs default.nix
with the expected hash?
from lorri.
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.
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.
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.
I wasn't able to do it with an override
either but changing cargoSha256
it in default.nix
fixes the hash mismatch.
self: super: {
lorri =
let src =
(super.fetchFromGitHub {
owner = "sveitser";
repo = "lorri";
rev = "91fd3becff4d0564c8584700111ae8a9364b78fc";
sha256 = "0kvscn48rpggfsxa8wil5jxxmz5c1jsynpm0jhvknsal8vrv991c";
});
in super.callPackage src { inherit src; };
}
from lorri.
That works!
from lorri.
Awesome, is there anything specific we need to do from our side?
from lorri.
Related Issues (20)
- lorri clobbers nix-shell environment
- Show and update lorri daemon status in shell
- No documentation about runtime garbage collection
- Lorri does not use bashInteractive like nix-shell
- Lorri misbehaves when the shell has `disallowedReferences`
- `lorri direnv` extremely slow with a large number of env vars
- shellHook fails when sourcing bash completions HOT 1
- lorri Crash Report
- lorri Crash Report HOT 1
- Start lorry from Emacs HOT 1
- Bash completions fail because XDG_DATA_DIRS is reset HOT 1
- lorri Crash Report HOT 1
- lorri + direnv reloads environment after every command HOT 1
- Lorri doesn't build on unstable HOT 2
- lorri internal stream-events does nothing
- Lorri fails to setup FHS user environment HOT 3
- Lorri incorrectly prepend NODE_PATH instead of overwriting
- Breaks kde-open5/xdg-open HOT 2
- MAINTENANCE NOTICE HOT 1
- lorri Crash Report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lorri.