!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

971 Members
For people hacking on the Nix package manager itself206 Servers

Load older messages


SenderMessageTime
28 Aug 2021
@sternenseemann:systemli.orgsterniright yeah12:57:22
@qyliss:fairydust.spaceAlyssa Rossnot sure what else13:03:22
@toonn:matrix.orgtoonn Fwiw the macOS stdenv already relies on Python, I believe. 13:08:52
@toonn:matrix.orgtoonn Not from stage 0 though. 13:09:07
@tomberek:matrix.orgtomberek

Is there any interest in a shebang compatible with flakes? I'm cleaning up a patch/PR that allows the familiar usage:

#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#hello
#! nix --command bash
hello
18:01:27
@Las:matrix.orgLas There is interest. I remember someone in #nix:nixos.org asking for that feature. 20:13:54
@Las:matrix.orgLasBut I'm not sure it has to be part of Nix itself.20:14:09
@tomberek:matrix.orgtomberekI've got this so far. Basic implementation and a test. https://github.com/tomberek/nix/commit/e8231c5236583c39d6060dc0819d8dea0a8305ed20:37:17
29 Aug 2021
@manveru:matrix.orgmanveru i really wish the crystal formatter wouldn't insist on changing #! to # ! after the first line... 08:40:28
@abathur:matrix.orgabathuroof14:40:39
31 Aug 2021
@roberthensing:matrix.orgRobert Hensing (roberth) I keep getting this wrong nix flake lock update --update-input 12:16:46
@roberthensing:matrix.orgRobert Hensing (roberth)is it just me or should this be a proper noun-verb command of its own?12:17:19
@Las:matrix.orgLas Robert Hensing (roberth): I often incorrectly use nix flake update ... 12:22:38
@Las:matrix.orgLasIt doesn't make much sense honestly12:22:42
@roberthensing:matrix.orgRobert Hensing (roberth)flake lock feels more noun-noun than noun-verb, although it's technically both12:23:47
@roberthensing:matrix.orgRobert Hensing (roberth) nix flake update <inputName> would make most sense to me 12:24:10
@roberthensing:matrix.orgRobert Hensing (roberth)could be multiple input names as well12:24:37
@Las:matrix.orgLas The odd thing is you can put --update-input on anything 12:25:10
@roberthensing:matrix.orgRobert Hensing (roberth)heh, ok12:25:32
@roberthensing:matrix.orgRobert Hensing (roberth) makes sense for --override-input, but update should be a separate action 12:26:04
@roberthensing:matrix.orgRobert Hensing (roberth) also update --override-input is meaningless or misleading 12:28:17
@roberthensing:matrix.orgRobert Hensing (roberth) nix flake update should be nix registry update? I think? 12:29:59
@roberthensing:matrix.orgRobert Hensing (roberth)anyway, this is probably going nowhere and I need to get work done, ttyl12:30:20
1 Sep 2021
@niksnut:matrix.orgniksnut
In reply to @roberthensing:matrix.org
nix flake update should be nix registry update? I think?
No, nix flake update updates the flake lock file, it doesn't have anything to do with the registry.
16:37:46
@roberthensing:matrix.orgRobert Hensing (roberth)then I don't know what should have been modified when I used it. Nothing changed.16:38:46
@niksnut:matrix.orgniksnutMaybe there was nothing to update?16:39:35
@roberthensing:matrix.orgRobert Hensing (roberth)or maybe it cached the thing I wanted to update16:40:13
@niksnut:matrix.orgniksnutit implies --tarball-ttl 0 so it shouldn't cache anything16:42:02
@roberthensing:matrix.orgRobert Hensing (roberth)hmm. That applies to git caching as well right?16:42:28
@roberthensing:matrix.orgRobert Hensing (roberth)it was github anyway, so that's a tarball16:42:43

Show newer messages


Back to Room ListRoom Version: 6