18 Jul 2024 |
| tewi 🏳️⚧️ changed their profile picture. | 23:50:52 |
| tewi 🏳️⚧️ removed their profile picture. | 23:52:42 |
| tewi 🏳️⚧️ set a profile picture. | 23:53:18 |
19 Jul 2024 |
| C0deboy joined the room. | 04:19:13 |
| usor joined the room. | 13:02:23 |
| easel changed their profile picture. | 14:17:24 |
Traxys | By any chance is there a way to know the git branch in a flake? I need to generate a package differently if it's from the main branch vs a stable branch (mostly links to the corresponding branch) | 18:04:40 |
tomberek | No. Because branches are mutable over time, this would allow you to have two different outcomes over time for the same commit. The way to do this would be to run a packaging script prior to your build that would add the branch name into a file of the flake, then running a "dirty" build. | 18:36:28 |
| Duanin2 joined the room. | 18:47:02 |
Matt Sturgeon | Or alternatively (since I assume you mean a branched off release) define the "release name" in a file/variable/whatever (committed to the repo) | 19:20:19 |
Gaétan Lepage | This is what is being done in nixpkgs I think | 19:35:44 |
Matt Sturgeon | In reply to @glepage:matrix.org This is what is being done in nixpkgs I think Yes they have lib.release or something similarly named | 19:49:28 |
Matt Sturgeon | * Yes they have lib.release or something similarly named, which just a string literal defined somewhere | 19:50:07 |
Matt Sturgeon | * Yes they have `lib.release` or something similarly named, which just a string literal defined somewhere | 19:50:16 |
Cathal OGrady | can I have a thin nix shell that does not dowload gcc coreutils etc ? | 23:09:45 |
SomeoneSerge (utc+3) | s/branches/branches and tags/ | 23:31:17 |
20 Jul 2024 |
infinisil | Cathal OGrady: pkgs.mkShellNoCC should do it mostly | 01:43:46 |
| brisingr05 left the room. | 05:48:38 |
| brisingr05 joined the room. | 05:57:15 |
Cathal OGrady | In reply to@infinisil:matrix.org Cathal OGrady: pkgs.mkShellNoCC should do it mostly thank you ! | 09:48:44 |
| @username:yatrix.org left the room. | 10:23:13 |
| @phileas:asra.gr left the room. | 16:53:14 |
| @felixfahrbahn:matrix.org left the room. | 17:51:25 |
@fjeauntyd:matrix.org | hi, folks
what's wrong with this trivial example
let
# factorial : int —> int
factorial = n: if n == 0 then 1
else n * factorial (n — 1);
in
factorial 5
results in error
[Running: nix-instantiate --eval play.nix]
error: syntax error, unexpected invalid token, expecting ')'
at /home/play.nix:4:49:
3| factorial = n: if n == 0 then 1
4| else n * factorial (n — 1);
| ^
5| in
[Command exited with 1]
| 19:27:10 |
@aloisw:kde.org | I don't think Nix supports all of these weird Unicode characters you have around the "minus" sign (that's an em dash to begin with). | 19:32:47 |
@fjeauntyd:matrix.org | In reply to @aloisw:kde.org I don't think Nix supports all of these weird Unicode characters you have around the "minus" sign (that's an em dash to begin with). oh, ok, thx, that's some artifact of copy-paste from a browser page, some strange non-space whitespace and em dash instead of hyphen
| 19:39:04 |
| andmuz left the room. | 19:45:51 |
21 Jul 2024 |
| @creepinson:matrix.org left the room. | 00:07:51 |
| @abbe_c:matrix.org left the room. | 05:46:49 |
| @mrprofessor:matrix.org left the room. | 16:32:55 |