-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svgbobrus: init at 2017-08-29 #28819
Conversation
The solution is to add a |
Ah, I see my problem: The commandline binary "svgbob_cli" is actually a subdir of the repository. And there is also the Cargo.lock file. How to specify a subdir as the actual target? |
Set the |
Seems like it should work. This is what
|
Hm... does not work for me. Also not without the "rus" part. |
I'll take a look when I get home but often what I do it add |
sha256 = "1bbh6inrif2y8159j4y1nvnrcf3fscrhb3zrshfms4847pms42cs"; | ||
}; | ||
|
||
depsSha256 = "19lrj4i6vzmf22r6xg99zcwvzjpiar8pqin1m2nvv78xzxx5yvgb"; | ||
|
||
sourceRoot = "${name}rus/svgbob_cli"; | ||
sourceRoot = "svgbobrus-${rev}-src/svgbob_cli"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to update rustRegistry
:
Using rust registry from /nix/store/z01ibnk837dchls2xirjm171k2sb51f6-rustRegistry-2017-08-27
warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future
Updating registry `file:///nix/store/z01ibnk837dchls2xirjm171k2sb51f6-rustRegistry-2017-08-27`
Updating registry `file:///nix/store/z01ibnk837dchls2xirjm171k2sb51f6-rustRegistry-2017-08-27`
error: no matching package named `svgbob` found (required by `svgbob_cli`)
location searched: registry file:///nix/store/z01ibnk837dchls2xirjm171k2sb51f6-rustRegistry-2017-08-27
version required: = 0.2.1
versions found: 0.2.0, 0.1.14, 0.1.13, ...
note: keeping build directory ‘/tmp/nix-build-svgbob-fetch.drv-5’
builder for ‘/nix/store/3c5gh2c48k56112apv3wz407dv98iq4i-svgbob-fetch.drv’ failed with exit code 101
cannot build derivation ‘/nix/store/8svy5vvhxr03a8ragj5apyjgyb2a5xyc-svgbob.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/8svy5vvhxr03a8ragj5apyjgyb2a5xyc-svgbob.drv’ failed
/run/current-system/sw/bin/nix-shell: failed to build all dependencies
Okay, now I only get a compiletime error (when compiling svgbobrus) because the nightly toolchain is required instead of stable. Everything else seems to work. |
Hmm, I don't actually know how to use nightly. There is a passthru.rustc which might work but I haven't tried it. |
There is |
80c575b
to
b816c49
Compare
#30088 has deleted |
Well, I do not care about that software this much anymore... shall we close it then? |
this is up to you. |
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)Pinging @kevincox as requested.
This fails with