!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

894 Members
180 Servers

Load older messages


SenderMessageTime
12 Aug 2021
@b:chreekat.netchreekatThat's what I thought, too, but I'm pecking at my phone right now and can't verify07:16:52
@mewp:nurupo.plmewpmaybe I'm wrong, let's see07:17:27
@b:chreekat.netchreekat Anyway +1 to the problem being discussed. :) 07:17:54
@b:chreekat.netchreekatI agree a solution would be nice07:18:03
@elonsroadster:matrix.orgelonsroadster Thanks bryan I'm glad someone else feels my pain 07:18:11
@mewp:nurupo.plmewpall right, yes, it appears I was wrong07:18:52
@mewp:nurupo.plmewpweird, I thought I remembered using that07:19:09
@b:chreekat.netchreekat +1 to that problem, too 07:20:11
@mewp:nurupo.plmewp stackoverflow says that git update-index --assume-unchanged <filename> should do that 07:20:43
@mewp:nurupo.plmewpsource: https://stackoverflow.com/questions/23673174/how-to-ignore-new-changes-to-a-tracked-file-with-git07:21:18
@b:chreekat.netchreekatI think I remember darcs has a way of keeping track of local commits that never go upstream, and since I learned darcs before git, I've always missed that feature07:21:35
@mewp:nurupo.plmewpthen again, git faq says not to do that: https://git-scm.com/docs/gitfaq#ignore-tracked-files07:22:07
@b:chreekat.netchreekat
In reply to @mewp:nurupo.pl
stackoverflow says that git update-index --assume-unchanged <filename> should do that
Oh, that's cool/weird
07:22:11
@elonsroadster:matrix.orgelonsroadsteryeah that is weird07:22:26
@elonsroadster:matrix.orgelonsroadsterit seems like it would be way better to track this in a flat file07:22:36
@elonsroadster:matrix.orgelonsroadsterseems like it could get really confusing if it were accidentally applied or something07:22:48
@elonsroadster:matrix.orgelonsroadsterbut anyway that does do basically what I want07:23:00
@elonsroadster:matrix.orgelonsroadsterI still think there are problems, even with this approach, like for example, if you wanted to import from additional flakes in this modification07:24:25
@elonsroadster:matrix.orgelonsroadstersay you wanted to import a flake for the dev tool you want to use07:24:56
@elonsroadster:matrix.orgelonsroadsterthere's still not a great way to do that with this approach07:25:09
@b:chreekat.netchreekat It's a slippery slope, though. At what point do you accidentally develop a "works for me" situation if it's too convenient to override things locally 07:28:02
@elonsroadster:matrix.orgelonsroadster bryan: I mean it seems like it could be specifically aimed at nix develop and the devShell attribute 07:31:06
@b:chreekat.netchreekatTrue, the package would still have to pass muster in the build phase07:31:49
@mewp:nurupo.plmewp nix develop --help says that you can pass a profile to it 07:32:02
@mewp:nurupo.plmewpso you could just have separate profiles per rpeo07:32:25
@mewp:nurupo.plmewp * so you could just have separate profiles per repo07:32:28
@elonsroadster:matrix.orgelonsroadster mewp: yeah but I dont think that profile can depend on e.g. the pkgs that was used to define the shell 07:32:34
@elonsroadster:matrix.orgelonsroadsteryoud have to separately maintain that profile07:32:53
@mewp:nurupo.plmewpthat's true07:32:59
@elonsroadster:matrix.orgelonsroadsterso like with haskell, for example, you use a specific haskellPackages set, and that would be defined by the flake, and you would want to use both the compiler and the haskell-language server version that is used to contruct the shell07:33:33

Show newer messages


Back to Room ListRoom Version: 6