| 13 Oct 2021 |
lourkeur (Nix OwO) | In reply to @tyberius_prime:matrix.org Can I run an arbitrary github flake as a one liner? generally speaking yes | 12:19:23 |
TyberiusPrime | turns out it's as simple as 'nix shell github:/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892'... | 12:25:00 |
TyberiusPrime | (which of course fails to compile because I'm trying to stamp the git version into that, and nix doesn't clone the repo, but downloads a tarball :)) | 12:25:20 |
balsoft | In reply to @tyberius_prime:matrix.org turns out it's as simple as 'nix shell github:/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892'... You can omit the rev | 12:25:21 |
balsoft | Or do it like github:TyberiusPrime/anysnake2/eef5fbe | 12:26:00 |
TyberiusPrime | I need the rev. | 12:26:08 |
balsoft | Yeah but you only need the first few chars | 12:26:18 |
TyberiusPrime | this will be 'read config. If config says to use a different version, respawn as nix shell <correct version here>' | 12:26:24 |
balsoft | And you can pass revs and branches as the last part of the URI | 12:26:29 |
balsoft | (unless the branch name contains slashes or other weird stuff, then you need to use URI query syntax and uriencode it) | 12:27:01 |
TyberiusPrime | In reply to @balsoft:balsoft.ru Yeah but you only need the first few chars that way lies madness. I don't even want to know what happens on an eventual collision) | 12:27:15 |
TyberiusPrime | hm "nix shell "git+https://github.com/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892"
fetching Git repository 'https://github.com/TyberiusPrime/anysnake2'fatal: couldn't find remote ref refs/heads/master" | 12:30:52 |
TyberiusPrime | is it telling me that it can't handle the default branch being called 'main' | 12:31:04 |
TyberiusPrime | ? | 12:31:05 |
balsoft | It can | 12:31:12 |
balsoft | nix shell " git+https://github.com/TyberiusPrime/anysnake2?ref=main&rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892" | 12:31:40 |
balsoft | Oh, actually | 12:31:49 |
balsoft | In reply to @tyberius_prime:matrix.org hm "nix shell "git+https://github.com/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892"
fetching Git repository 'https://github.com/TyberiusPrime/anysnake2'fatal: couldn't find remote ref refs/heads/master" On recent nix that should just work | 12:31:59 |
balsoft | $ nix shell " git+https://github.com/TyberiusPrime/anysnake2?rev=eef5fbe89f685981b7ebf63f695c6c7f42d00892"
[1/0/2 built] building anysnake2-deps-0.1.0 (buildPhase): Compiling walkdir v2.3.2
| 12:32:14 |
balsoft | nix (Nix) 2.5pre20211008_4c17ebe | 12:32:29 |
TyberiusPrime | guess I'm on 3.0pre20200829_f156513 | 12:32:36 |
balsoft | That's really old | 12:32:43 |
balsoft | Yeah over a year old | 12:32:49 |
TyberiusPrime | well, it's supposed to be a very recent 'nixUnstable'... hm | 12:34:07 |
TyberiusPrime | fro mnixpkgs-unstable | 12:34:18 |
Jez (he/him) 🌦️ | What other VCS's does nix flakes allow? I've used it with git and mercurial so far | 18:55:17 |
Las | None I think. | 20:37:23 |
Las | It will still work with other VCSes but not as well. | 20:37:30 |
| 16 Oct 2021 |
colemickens 🏳️🌈 | dude, please tell me I'm confused. | 23:00:58 |
colemickens 🏳️🌈 | is nix run ... -c command really not a thing anyore" | 23:01:07 |