<colemickens>
It's the same thing as if you did `import default.nix`, so you can access attributes. (At least, that is the case with /archive/{branch}.tar.gz which I assume is the same thing but gzipped.
h0m1 has quit [Quit: WeeChat 2.8]
alp has quit [Ping timeout: 272 seconds]
<colemickens>
It was a nice epiphany when that clicked for me, the nix cli just does the "fetchTarball" for you
h0m1 has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
<bbigras>
thanks you both
<bbigras>
colemickens++
<{^_^}>
colemickens's karma got increased to 0b11101
<moet>
are there supposed to be .lock files in the nix-store?
<bbigras>
I must confess that I'm still confused by import vs callpackage and stuff.
<clever>
moet: those get created when a build starts, and an flock is held on it while building
<clever>
moet: they are some of the first things deleted by a GC, so `nix-collect-garbage --max-freed 1` will delete most of them, and then 1 random piece of garbage
<moet>
clever: are they sticking around because i ctrl+c'd a build or two?
<moet>
i've got quite a lot ..
<clever>
probably
<moet>
clever: do they break bulids? :P
<clever>
nope
<moet>
then they can live on my system :)
<clever>
it uses an flock to determine if the thing is actually building or not, and those get released when the proc dies
alp has joined #nixos
<moet>
so the flock is released, and the files sticking around shouldn't matter
<clever>
yep
<moet>
followup question: i can't seem to use a haskell package override of the form `doctest = self.callHackage "doctest" "0.17" {};` ... or 0.16.3 ... those most recent two versions give me some error about it not being in the hackage index
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JJYG5
<moet>
but both versions are on hackage, so i don't really know what that means
<clever>
moet: nixpkgs has an all-cabal-hashes.tar file, that has every single .cabal file for every single version
<clever>
but it can be out of date, and then you calt callHackage
<clever>
you want to switch over to callHackageDirect, which needs a sha256 of the src
<moet>
perfect! thank you
<clever>
s/calt/cant/
<clever>
callHackageDirect = {pkg, ver, sha256}:
<clever>
so i think that would be: callHackageDirect { pkg = "doctest"; ver = "0.17"; sha256 = "hash"; } {}
<moet>
clever: thanks.. what's the last {} for?
<clever>
moet: the standard {} that all callPackage things want
<cole-h>
It's a function that needs two arguments, { pkgs = .... } and {}
<moet>
is it the same {} as in `import <nixpkgs> {}`;?
<cole-h>
It's not the same, because it's a different function.
<cole-h>
The characters are the same.
<moet>
i guess i meant, are the attribute-names expected between the {} the same?
alp has quit [Ping timeout: 272 seconds]
<moet>
it sounds like "no"
<moet>
what are the attribute names that a package expects between the {}?
<clever>
the {} at the end, is for an args the default.nix accepts on line 1
<clever>
like callPackage ./foo.nix { withBar = true; }
<clever>
but often, the defaults are fine
<colemickens>
how are people have flake outputs build multiple derivations? with nix v1 cli I can just throw a list of attrs at it. `nix eval --json` takes it, `nix build` complains the output isn't a derivation
<moet>
ah! ok, great
<colemickens>
I guess symlinkJoin or whatever might work?
<moet>
thank you clever cole-h
kleisli has quit [Ping timeout: 256 seconds]
<clever>
colemickens: i tend to use buildEnv
<colemickens>
clever: okay thanks I'll check that too
<cole-h>
moet: You probably want to `--unpack` that.
<{^_^}>
moet: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<clever>
195 in self.callCabal2nix pkg (pkgs.fetchzip {
<clever>
moet: also, its using fetchzip, which matches up to `nix-prefetch-url --unpack`
<moet>
yeah, i ended up doing tofu
<moet>
ahh, ok, thank you
<cole-h>
colemickens: My brain is slow, can you give an example of the nix v1 way of what you're wanting to do?
<moet>
yup, adding --unpack gave me the matching hash :)
<moet>
thank you again!
<colemickens>
cole-h: nix-build build.nix in nixpkgs-wayland, for example
<colemickens>
I'm converting it to a flake right now and I want a nix-build command that builds all the overlay pkgs.
<colemickens>
also, buildEnv and symlinkJoin don't seem to be in the flake lib thing, I guess I have to import old school style? I'm still a bit fuzzy on how lib+flakes works.
<cole-h>
Oh, got it. So you want calling nix build on a file with `{ asdf = drv; jkl = drv; zxcv = drv; }` to build all of those?
<colemickens>
some things are in inputs.nixpkgs.lib, but somethings are only available after doing an import on nixpkgs and then accessing lib.
<colemickens>
cole-h: you've got it. and then the caveat that it has to work the same with flakes mode :P
<cole-h>
Right. Kinda shocking that's not possible...
<colemickens>
I think `nix build` handles the overlay as is just fine, but flakes mode won't build multiple derivations wiht `nix build`.
<colemickens>
oh no, it actually gives an error too, I guess I'd never tried this.
<colemickens>
this would explain why I've seen others go to the effort to use buildEnv/symlinkJoin. I've always just splatted out a list and stuck with `nix-build` I guess.
<clever>
colemickens: if you give nix-build a list or a set, it just barfs a ton of result-42 symlinks into the current dir
<clever>
then you have the fun of figuring out which result you wanted
<clever>
if you give nix-env -i a list or set, it will just install all of the things
capt_zap has quit [Read error: Connection reset by peer]
capt_zap has joined #nixos
<colemickens>
clever: good points, I'd only really ever encountered the first one.
<colemickens>
wait, if nix build insists on only one output then ... that just makes the not printing to stdout...
<colemickens>
* wait, if nix build insists on only one output then ... that just makes the not printing to stdout...
<colemickens>
oh also, it was more approriate to use .#packages and expose the set, instead of converting to a list and symlinkJoin with .#defaultPackage. another TIL.
m0rphism has quit [Ping timeout: 265 seconds]
verdys has joined #nixos
luna has joined #nixos
sigmundv has quit [Ping timeout: 240 seconds]
zangi has quit [Read error: Connection reset by peer]
<{^_^}>
nix#3366 (by samueldr, 20 weeks ago, closed): [WIP] Add a compatibility shim for non-flake nix
<{^_^}>
[nixpkgs] @marsam opened pull request #92907 → vte: fix build on darwin → https://git.io/JJYlT
<cole-h>
:D
<cole-h>
Kinda sucks that, to get email notifications, I have to unsubscribe and then re-subscribe to an issue/PR if I'm watching the repo
raghavsood has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<raghavsood>
Anyone have an idea where I'm supposed to define `initialHashedPassword` after recent changes to unstable? Every time I try to deploy, it complains that `initialHashedPassword` is undefined - I've tried adding it to the root user, all my other users, doesn't seem to change anything
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
detran has quit [Ping timeout: 246 seconds]
wildsebastian has quit [Ping timeout: 272 seconds]
mdlayher has quit [Read error: Connection reset by peer]
detran has joined #nixos
mdlayher has joined #nixos
wildsebastian has joined #nixos
omnigoat has joined #nixos
ddellacosta has joined #nixos
bahamas has joined #nixos
maier has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.8]
ddellacosta has joined #nixos
maier has quit [Ping timeout: 240 seconds]
pjt_tmp has joined #nixos
pjt_tmp is now known as pjt_014
hgyyrfy has joined #nixos
<cole-h>
Paste the entire error
<cole-h>
As well as the full trace (`--show-trace`)
<cole-h>
raghavsood: ^
hgyyrfy has quit [Remote host closed the connection]
<raghavsood>
I have a total of two users, both with an `initialHashedPassword` in their config (which I added today, never needed it before), and also have added `users.users.root.initialHashedPassword` - no change on the error though
dfg has joined #nixos
<cole-h>
Can you post your configuration that includes those settings? Feel free to censor the hashed password.
<dfg>
how do i make my irc client ignore request from people that are telling it to join channels
<cole-h>
raghavsood: I'd also try `nixos-rebuild dry-activate -I nixos-config=./path/to/configuration.nix` and see if it gives more information.
<bqv>
dfg: that depends entirely on your irc client
<bqv>
don't think you can block invites at server level
<bqv>
if you can, it'd be a umode
<dfg>
hex
<dfg>
hjechat
<dfg>
hexchat
<bqv>
i don't use hexchat
<bqv>
if you do /ctcp version #nixos, you might figure out some people who do though
<cole-h>
raghavsood: I think the problem may be `security.initialHashedPassword`, actually
<cole-h>
That doesn't exist
bahamas has quit [Ping timeout: 272 seconds]
cosimone has quit [Remote host closed the connection]
<cole-h>
What do you mean "moving the source of a program"? If you mean changing where the source is retrieved from, if you have a meaningful upstream to change it to, just send a PR.
<cole-h>
pjt_014: If you're only mirroring it from the source that makes you uncomfortable, that's a bad idea (IMO).
cyphase has quit [Quit: cyphase.com]
<cole-h>
raghavsood: What if you try to deploy with `nixpkgs=channel:nixos-unstable`? Just curious.
<raghavsood>
Hmm, let me add it and try
<raghavsood>
Fortunately this is a sacrificial machine, so breaking it is par for the course
<cole-h>
If that doesn't help anything, you'll want to ask again later, when the more knowledable people are awake/available... A strange error, indeed.
<cole-h>
(Sorry I couldn't help)
<raghavsood>
Same error and trace with `nixos-unstable`
<raghavsood>
Fwiw, if I deploy against 20.03, it works fine
<raghavsood>
So it does seem related to recent changes, likely in the last week or so - had no issues deploying unstable before that
<raghavsood>
Possibly, maybe recent updates did something incompatible - I'll try bisecting recent commits and seeing exactly where the problem shows up
pamplemousse has joined #nixos
pamplemousse has quit [Ping timeout: 256 seconds]
<bqv>
pjt_014: wow. That's highly distressing
<pjt_014>
there is a mirror on github at least
<pjt_014>
though it also lacks a manual :l
<pjt_014>
One would have to...extrapolate one.
<pjt_014>
bqv: I can just open an issue for it. I've done it before
kleisli has quit [Ping timeout: 256 seconds]
Rusty1 has quit [Quit: WeeChat 2.3]
o1lo01ol1o has joined #nixos
dfg has quit [Quit: Leaving]
<bqv>
Yeah, probably best
CMCDragonkai1 has joined #nixos
<bqv>
(Then it's at least logged and we can all ignore it until someone posts the same issue a year from now :p)
kreyren_ has quit [Remote host closed the connection]
bkv has joined #nixos
hellrazor has quit [Ping timeout: 260 seconds]
ilmu has quit [Ping timeout: 260 seconds]
<moet>
that's kind of awesome that that just works
<moet>
do you do a `+ "/subdir"` or a `+ /subdir`?
bqv has quit [Ping timeout: 272 seconds]
<cole-h>
Notice: ofborg evaluators and x86_64-linux builders are down. Buildkite seems to be having trouble, so I can't try to redeploy, either. Sory for the inconvenience.
hellrazor has joined #nixos
<cole-h>
moet: Needs to be quoted. Otherwise it'll try to access `/subdir` on your system.
<samueldr>
moet: with paths, starting with / is an absolute path
ilmu has joined #nixos
maier has joined #nixos
kleisli has quit [Remote host closed the connection]
valwal_ has quit [Ping timeout: 256 seconds]
leah2 has joined #nixos
kleisli has joined #nixos
valwal_ has joined #nixos
c4rc4s_ has joined #nixos
hoek_ has joined #nixos
cosimone_ has joined #nixos
cole-h has quit [Quit: Goodbye]
hoek has quit [Ping timeout: 256 seconds]
printfn[m] has quit [Ping timeout: 256 seconds]
printfn[m] has joined #nixos
printfn[m] has joined #nixos
hoek_ is now known as hoek
cosimone has quit [Ping timeout: 256 seconds]
c4rc4s has quit [Ping timeout: 256 seconds]
bachp has quit [Ping timeout: 256 seconds]
nand0p has quit [Ping timeout: 256 seconds]
penguwin has quit [Ping timeout: 256 seconds]
<moet>
thank you. testing it out now
penguwin has joined #nixos
maier has quit [Ping timeout: 240 seconds]
c4rc4s_ is now known as c4rc4s
ilmu has quit [Ping timeout: 256 seconds]
jbetz has quit [Ping timeout: 256 seconds]
nz has quit [Ping timeout: 256 seconds]
ajmcmiddlin has quit [Ping timeout: 256 seconds]
nz_ has joined #nixos
ajmcmiddlin_ has joined #nixos
<bkv>
,locate libosicat
<{^_^}>
Couldn't find in any packages
yusdacra[m]1 has joined #nixos
nand0p has joined #nixos
ilmu has joined #nixos
movsxd[m]1 has joined #nixos
Xamino[m]1 has joined #nixos
Ox4A6F1 has joined #nixos
jbetz has joined #nixos
yusdacra[m] has quit [Ping timeout: 256 seconds]
movsxd[m] has quit [Ping timeout: 256 seconds]
Xamino[m] has quit [Ping timeout: 256 seconds]
Yakulu[m] has quit [Ping timeout: 256 seconds]
steveeJ has quit [Ping timeout: 256 seconds]
Ox4A6F has quit [Ping timeout: 256 seconds]
mpickering has quit [Ping timeout: 256 seconds]
Fuzen has quit [Ping timeout: 256 seconds]
Strubbl[m] has quit [Ping timeout: 256 seconds]
ptotter[m] has quit [Ping timeout: 256 seconds]
steveeJ has joined #nixos
Yakulu[m] has joined #nixos
_reanimus_ has quit [Ping timeout: 256 seconds]
gcoakes[m] has quit [Ping timeout: 256 seconds]
Strubbl[m] has joined #nixos
mpickering has joined #nixos
Fuzen has joined #nixos
ptotter[m] has joined #nixos
reanimus has joined #nixos
gcoakes[m] has joined #nixos
simba2 has joined #nixos
bachp has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 272 seconds]
<moet>
the subdir of the source is working
<moet>
i'm doing something like `dependency1 = haskellPackages'.callCabal2nix "dependency1" (repo + "/dependency1") {};` .. but it's complaining that it's missing .. another dependency in the same repo
<moet>
something about "anonymous function missing `dependency2`"
<moet>
can i pass that in somewhere? do i need to make my attrset "rec"?
<{^_^}>
[nixpkgs] @freezeboy opened pull request #92912 → ssh-ident: switch to python3 interpreter → https://git.io/JJYRe
never_released_ has joined #nixos
never_released has quit [Ping timeout: 264 seconds]
turion has quit [Ping timeout: 246 seconds]
bkv has joined #nixos
bqv has quit [Ping timeout: 246 seconds]
<AlpineLlama>
hey all! I'm trying to allow the ati_unfree using allowUnfreePredicate. when I try nixos-rebuild however I get a allowUnfreePredicate defined in /etc/nixos/configuration.nix does not exist
<asymmetric>
does nix-shell as a shebang only work on nixos?
<pbb>
No, it should work on every system with nix-shell installed
o1lo01ol1o has joined #nixos
<asymmetric>
i'm trying it on an ubuntu system, and adding `#!/usr/bin/env nix-shell` and `#! nix-shell -p jq` does not install jq, and the script is run with `sh`
<{^_^}>
[nixpkgs] @Patagonicus opened pull request #92915 → Revert "bashCompletion: speed-up test execution by using xdist" → https://git.io/JJYEz
<{^_^}>
[nixpkgs] @vcunat merged pull request #91818 → gperftools: fix build on ARM → https://git.io/JJfDG
alp has quit [Ping timeout: 272 seconds]
mallox has quit [Quit: WeeChat 2.8]
cosimone_ is now known as cosimone
confus has quit [Remote host closed the connection]
<asymmetric>
pbb: thanks, in my case i needed to use a here-string, then everything worked
<asymmetric>
pbb++
<{^_^}>
pbb's karma got increased to 2
mananamenos has quit [Remote host closed the connection]
bahamas has joined #nixos
bahamas has joined #nixos
bahamas has quit [Changing host]
Thra11 has joined #nixos
noudle has joined #nixos
philr_ has joined #nixos
philr has quit [Ping timeout: 264 seconds]
kleisli has quit [Ping timeout: 260 seconds]
<jackdk>
I am trying to solve the following problem, as a thought experiment but maybe also as a project: I want to write a nix expression that specifies an attrset, where each element is a docker container. I would like to set CI such that pushing new versions of this expression to a repo causes rebuilds of changed containers, and pushes built containers to a registry somewhere
<jackdk>
Hydra sounds pretty close to what I want, especially because then I get good caching of the unchanged bits, but the only notification stuff I can see in the manual is email notifications when the status of builds change. I feel like what I want is the ability to hook in post-build actions when the build finishes.
jakobrs has joined #nixos
<jakobrs>
,identify virt-bootstrap
<jackdk>
Channels seem like they must do something similar, but I haven't yet found the documentation that describes how that works.
<patagonicus>
jackdk: Why not a "classic" CI system, such as Travis or GitLab CI, that's triggered by pushes to the repo and then builds everything? At least for Gitlab CI I'm fairly confident that it's possible to set it up in a way that'll keep you the already built derivations between runs.
kleisli has joined #nixos
<jackdk>
patagonicus: could work. I feel like putting all of /nix/store into cache might not be the best option, but I don't know what _is_ the best option
<{^_^}>
[nixpkgs] @DamienCassou pushed 2 commits to master: https://git.io/JJYu0
bennofs has joined #nixos
<patagonicus>
jackdk: That's a pretty neat article. Yeah, I was envisioning something like that. Throw in a cron job that deletes old stuff from the cache and your builders become really simple - just configure the cache, build the current commit, upload the result to the registry and build artifacts to the cache.
nikita` has joined #nixos
<jackdk>
looks like `nix copy` can push to S3, so I might just be able to stick a lifecycle policy on the bucket. Will have to see how it stores built derivations.
o1lo01ol1o has quit [Remote host closed the connection]
markus1189 has quit [Ping timeout: 264 seconds]
MmeQuignon has joined #nixos
markus1189 has joined #nixos
alp has joined #nixos
Heirlung has quit [Ping timeout: 258 seconds]
simba2 has quit [Ping timeout: 246 seconds]
freezeboy has joined #nixos
<freezeboy>
Hi, just wondering, I just created some PRs to add programs / libs that I usually run in my overlay, and would love to see them merged, is it possible de do some peer review with somebody ? I will be able to test other PRs but not merge them myself
Heirlung has joined #nixos
alp has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @flokli opened pull request #92921 → [20.03] fontconfig_210: mark as insecure → https://git.io/JJYgW
altnate has joined #nixos
<patagonicus>
On the topic of PRs: I've made one the revert a commit and it's gotten approved pretty quickly. Is there something I need to do now or do I just wait for someone with write access to merge it?
<AlpineLlama>
Yo I'm reading through the nix pills to get a hang of this configuration. while writing my own derivation I made a mistake in one of the source files "simple.c" (forgot a semicolon) which cause the build to fail. after correcting the file and saving however. I could not convince the same nix repl session I was in to reload the simple.c file.
<AlpineLlama>
I ended up restarting the nix repl
<AlpineLlama>
Is there a way to force reloading of a source file? or any other file that nix may have copied
altnate has quit [Quit: WeeChat 2.7.1]
<freezeboy>
AlpineLlama, I think you can try to start the fetchPhase again ?
<zangi>
is there a better way to locate the location of a package (e.g. nixpkgs/pkgs/applications/editors/emacs for emacs) other than reading all-packages.nix?
<freezeboy>
and you should be able to build minetest with "nix-build -A minetest"
<freezeboy>
the result link should contain the bin/minetest
kleisli has joined #nixos
davidv7 has quit [Remote host closed the connection]
<bdju>
sorry, was distracted by something else. I'll get working on this in a sec
ddellacosta has quit [Ping timeout: 272 seconds]
xwvvvvwx has quit [Remote host closed the connection]
xwvvvvwx- has joined #nixos
xwvvvvwx- is now known as xwvvvvwx
justan0theruser has quit [Ping timeout: 256 seconds]
davidv7 has joined #nixos
<bdju>
freezeboy: thanks for the simple instructions. it seems to work!
<freezeboy>
bdju Cool
bahamas has joined #nixos
<maralorn>
When I have a default.nix which just returns a package and import it in another nix file. Do I have a way to get the nixpkgs used for that package just by inspecting it after importing?
sangoma has quit [Ping timeout: 260 seconds]
<jackdk>
freezeboy: I'm going to sleep but I looked at your PRs. I don't know the KDE infra that well so I could be talking nonsense. HTH.
<clever>
maralorn: not really, you would need to return a set that has both your pkg and the pkgs tree, or return an overlay and let something else assemble things
bahamas has quit [Client Quit]
<maralorn>
clever: I'll revert to my old method of having default.nix and shell.nix being very small and just picking the right attribute from project.nix …
<eyJhb>
I have this very very ugly expression `${ concatStringsSep "\n" (forEach (splitString jail.seccomp "\n") (x: ''seccomp_string: "''+x+''"''))}`, which should take a types.lines, split it by \n, add the seccomp stuff, then concat it with \n again.
<eyJhb>
But it simply gives me a single empty line, instead of the three I expect. Any clues?
sheepfleece has joined #nixos
alp has quit [Ping timeout: 272 seconds]
zebrag has joined #nixos
noudle has quit []
turion has quit [Ping timeout: 246 seconds]
sheepfleece has quit [Quit: Lost terminal]
<freezeboy>
jackdk thanks, I fixed the meta point, not sure for the version point
<{^_^}>
[nixpkgs] @vcunat pushed 32 commits to staging-next: https://git.io/JJYr9
<raghavsood>
It does still break nixops, but only if you are actually trying to set a root password now, instead of breaking it always
<cole-h>
raghavsood++ Good work! Thanks for getting back to me about it, too :P
<{^_^}>
raghavsood's karma got increased to 2
<raghavsood>
nixops sets the password to "
<raghavsood>
!", which is equivalent to null in the config
<raghavsood>
So if you overwrite it, you get errors about conflicting definitions
<raghavsood>
I'll probably open a separate nixops issue for that
<cole-h>
What if you `lib.mkForce` it?
<clever>
raghavsood: i think the problem with initialHashedPassword and nixops, is that the machine boots once before you deploy
<clever>
raghavsood: so for root, its no longer the initial boot when you deploy things
jakobrs has joined #nixos
pjhenning[m] has joined #nixos
<raghavsood>
nixops adds an ssh key into the root account, as far as I can tell - as of release-1.7, it explicitly sets the root password to `!` in `hetzner.nix`, which is interpreted as `null` by the build process for shadow. You never actually login using a password, connections are always via public keys
<raghavsood>
So it doesn't actually break nixops unless you try to specify a root password
<raghavsood>
Which should be reasonably unlikely, but nevertheless, best file an issue in the event that someone tries that
<raghavsood>
It actually might be limited to just the hetzner plugin
<raghavsood>
I haven't checked the other plugins, but they could be doing similar stuff
<{^_^}>
[nixpkgs] @siriobalmelli opened pull request #92940 → python3Packages.mac_alias: init at 2.0.7 → https://git.io/JJYKM
sangoma has joined #nixos
werner291 has quit [Quit: werner291]
<raghavsood>
clever: you're right that it reboot during the initial install (at least for hetzner, I imagine it doesn't do that if you're deploying to a machine already running nixos). But since it controls the image it boots fully, I suspect the password it sets will persist anyways, unless you have a separate definition for the password after the initial
<raghavsood>
build, or mutable users set and change it yourself
<{^_^}>
[nixpkgs] @philandstuff opened pull request #92941 → doc: adding labels doesn't require commit rights → https://git.io/JJYK5
peelz has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
<nabataeus>
I'm new to Nix here, but I wanted to ask, what is the use for `~/.config/nixpkgs/config.nix' when `/etc/configuration.nix' exists? Or is it just used for Nix, and not NixOS
<Guest49640>
~/.config/nixpkgs/config.nix is for nix-env etc, /etc/nixos/configuration.nix is for NixOS ( and also supports configuring nix-env, etc )
Guest49640 is now known as AmandaC
justan0theruser has joined #nixos
<nabataeus>
Oh I see, so if I made changes to `config.nix', will I have to `nixos-rebuild' or something?
<clever>
nabataeus: nixos-rebuild ignores config.nix by default
<bbigras>
Is it possible to disable `vendorSha256` with `buildGoModule`? I would like to build a go project using niv and github actions and `vendorSha256` would very likely prevents the PRs from building.
<cole-h>
~/.config/nixpkgs/config.nix is for nixpkgs configuration for your user. e.g. that configuration will affect nix-env or home-manager stuff, but will not affect your system configuration
ap29600 has joined #nixos
<nabataeus>
clever: so what's the option to enable it?
<txt_file>
I am trying to create an image with nixos-generators but it tells me that /buid has the wrong permissions. https://paste.debian.net/1156044/
<txt_file>
Problem is that I do not find any /build directory
<{^_^}>
[nixpkgs] @samuelgrf opened pull request #92950 → oh-my-zsh: patch out functions that don't work on Nix → https://git.io/JJYX3
<freezeboy>
txt_file nix builds inside a sandbox where some folder in /tmp is bound mounter as /build
<clever>
txt_file: /build/ only exists in the sandbox the build is happening under
<evanjs>
cole-h: I still had to apply the patches I mentioned before (eg disable OS check for hotspot), but I'm going to assume `enableDebugging` is what finally allowed the build to succeed. Thank you!!
<evanjs>
Though it doesn't seem to modify buildInputs or etc. bah. Either way 😃
<cole-h>
enableDebugging shouldn't "fix" a build, but instead make it easily debuggable (by keeping debug symbols, if present)
asymptotically has quit [Quit: Leaving]
<freezeboy>
if anyone is willing to review some easy (updates) pr, I have some currently pending
<evanjs>
I got hit by that one, too 😃
<evanjs>
Was totally not confused at all...
<evanjs>
cole-h: right yeah that's what I was confused about
<evanjs>
The only way I can think of that it could fix it, is if some debug options I enabled were expecting symbols to already be generated or something 🤷♂️
<evanjs>
It's more likely that I just finally got the right combination of changes to properly build with debug info, enableDebugging aside
<{^_^}>
[nixpkgs] @fpletz pushed commit from @ciil to master « atlassian-confluence: 7.5.1 -> 7.6.0 (#92923) »: https://git.io/JJYXF
<evanjs>
cole-h: lol it seems to be ~2x as large with it on so :shrugs: ah well. as long as it works. now to just work out the right dir to add to gdb (already got the sources)
<cole-h>
Yeah, debug symbols are large.
acarrico has quit [Ping timeout: 264 seconds]
<evanjs>
I mean, they better be. I'm not using Ghidra because I _want_ to lol
slack1256 has joined #nixos
dermetfan has quit [Ping timeout: 256 seconds]
<eyJhb>
Any good way to espace this line `ls -l /dev/video* | awk '{print "--bindmount "$NF":"$NF}'` when I need to use it in a string, either with " or ''
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
shabius_ has quit [Quit: Leaving]
<infinisil>
,escape
<{^_^}>
Usage: ,escape <text> to show how to escape the given text in Nix
<infinisil>
eyJhb: ^
o1lo01ol1o has joined #nixos
<cole-h>
,escape ls -l /dev/video* | awk '{print "--bindmount "$NF":"$NF}'
<{^_^}>
Escape this in '' strings with: ls -l /dev/video* | awk '{print "--bindmount "$NF":"$NF}'
<{^_^}>
Escape this in " strings with: ls -l /dev/video* | awk '{print \"--bindmount \"$NF\":\"$NF}'
<evanjs>
cole-h: ah I think I found the other thing. In the last few builds, it _was_ still complaining about OBJCOPY, but only via INFO, and wasn't failing or anything
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<evanjs>
infinisil++ tho
<{^_^}>
infinisil's karma got increased to 319
<evanjs>
need to save that
<mac10688>
Does anyone know how to install haskell language server on nixos? There's not a package for it so I have to build it locally if I want to use it
<evanjs>
you can use tab completion (if available) and see what other channels are available
<evanjs>
stuff on your system will start with < (e.g. <nixos> or <nixpkgs>), etc
<mac10688>
ok, I'll consider that. I thought the only channels I would be interested in are stable and unstable and mostly unstable for this since it seems to be bleeding edge
<mac10688>
I'm glad smart people are trying to figure out how to make this a package because I don't have a clue
o1lo01ol1o has joined #nixos
shibboleth has quit [Remote host closed the connection]
est31 has quit [Remote host closed the connection]
est31 has joined #nixos
<mac10688>
ah the website has an issue with caching. That's why my search on unstable branch doesn't show me results I expect
<{^_^}>
[nixpkgs] @flokli merged pull request #91232 → systemd: Allow setting the transient hostname via DHCP → https://git.io/JfNBA
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
knupfer has quit [Quit: knupfer]
<{^_^}>
[nixpkgs] @veprbl pushed commit from @dylex to release-20.03 « texlive.bin: fix poppler compatibility patch urls (#91890) »: https://git.io/JJYSg
knupfer has joined #nixos
<eyJhb>
Uhhh, new unstable
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
pamplemo1sse has joined #nixos
knupfer has joined #nixos
<yurb>
Is it normal that the nixos-20.03 channel has alpha version of Audacity? (It warns on startup and the version is reported as "Audacity 2.3.3-alpha-Jan 1 1970")
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<eyJhb>
Weird, unstable has 2.4.1
<eyJhb>
I am sure it can be backported if it is yurb
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aw has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 260 seconds]
aw has joined #nixos
spacefrogg has joined #nixos
pamplemo1sse has quit [Ping timeout: 264 seconds]
Czen1 is now known as Czen
proofofkeags has quit [Remote host closed the connection]
NeoCron has quit [Ping timeout: 256 seconds]
<bbigras>
Any tricks to test if the `nativeBuildInputs` vs `buildInputs` deps are set correctly? Anything like nix-shell --pure that could show me one dep is not required only at runtime?
<yurb>
Struggling with updating the hash for audacity 2.3.3, somehow when building the hash doesn't match what `nix-prefetch-url` generated: https://dpaste.org/8umW
<yurb>
...nor what was in `default.nix` before
<bbigras>
maybe you should convert it to fetchFromGithub. It's supposed to be used according to the guidelines I think
<yurb>
bbigras: thanks, I'll try
<cole-h>
,tofu yurb
<{^_^}>
yurb: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<clever>
yurb: fetchzip matches to `nix-prefetch-url --unpack`
<{^_^}>
error: syntax error, unexpected ')', expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):319:1
<mac10688>
evanjs: sorry for the delay. I had to lie down. I don't know what the cache problem is about. Someone diagnoses it at the bottom of of the issues linked earlier. I had to open private browser to get correct results.
zupo has joined #nixos
pbb has quit [Quit: No Ping reply in 210 seconds.]