<KarlJoad>
Also, is there a way to specify installation of a newer version of a package? evdion my system only shows 1.5 something. On the nixpkgs git repo, it shows 1.6. 1.5 is failing, and I would like to try 1.6.
<kisik21>
Again, you can use "pinned" nixpkgs for that! Use packageOverrides and a let block to add a "evdion" package from newer Nixpkgs version
<KarlJoad>
Thanks!
<kisik21>
something like nixpkgs.packageOverrides = let nixpkgs-master = import (builtins.fetchGit { name = "nixpkgs-master"; url = https://github.com/nixos/nixpkgs; rev = "master"; }) {}; in { evdion = nixpkgs-master.evdion; };
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ericsagnes has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
vonfry has quit [Ping timeout: 248 seconds]
zeta_0 has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
Okinan has joined #nixos
<KarlJoad>
kisik21: I've split my packages out into its own file. It goes: environment.systemPackages=with pkgs; [<pkgs>]; Would it go outside, as it's own list?
kreetx has joined #nixos
<kisik21>
Um... probably not. I'm not sure
kreetx has quit [Ping timeout: 246 seconds]
<ivan>
adisbladis: are you also on NVIDIA?
zeta_0 has quit [Remote host closed the connection]
kreisys has joined #nixos
zeta_0 has joined #nixos
<zeta_0>
how do i install ghc 8.6.5 in home.nix, `haskellPackages.ghc_8_6_5` is not working?
<KarlJoad>
I'm having another issue. I added the 19.03 channel to my channel list, and now I can't perform a `nix search`. It always errors out with "error: no results for the given search term(s)!"
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
kreetx has joined #nixos
<ivan>
maybe some haskell person knows
kreisys has quit [Remote host closed the connection]
<zeta_0>
ivan: well this is nixos specific so i don't think they will be able to help me with this, so i guess i will just experiment with it until i can get it to work
<zeta_0>
clever: what is the link to see all of the haskell packages?
rprije has quit [Ping timeout: 245 seconds]
<clever>
zeta_0: its a function that takes arguments and returns a package
<clever>
zeta_0: packages.html only shows packages, not functions
<KarlJoad>
I'm having another issue. I added the 19.03 channel to my channel list, and now I can't perform a `nix search`. It always errors out with "error: no results for the given search term(s)!"
<clever>
zeta_0: and the haskellPackages set contains every single package from hackage, with matching names
<zeta_0>
clever: i am still confused, but thanks
<jasongrossman>
KarlJoad: Have you done (sudo) nix-channel --update?
<KarlJoad>
jasongrossman: Yeah, I did the nix-channel --update with sudo. I still can't update the search cache and the search terms
schneid3306 has quit [Quit: ZZZzzz…]
<{^_^}>
[nixpkgs] @samueldr opened pull request #65451 → cool-retro-term: Wrap with wrapQtApps → https://git.io/fjy0v
<zeta_0>
clever: i'll give it a try and let you know if it works or not
zeta_0 has quit [Remote host closed the connection]
<KarlJoad>
jasongrossman: I do get some good output. There are some derivations made and symlinks made, but I still get similar problems.
schneid3306 has joined #nixos
___laika has joined #nixos
day|flip has quit [Quit: ERC (IRC client for Emacs 26.1)]
KarlJoad has quit [Quit: Konversation terminated!]
zeta_0 has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<siraben>
Has anyone used the Mathematical Components library for Coq on NixOS?
<siraben>
I tried installing mathcomp from nixpkgs but can't seem to import it into Coq.
zmlww has quit [Ping timeout: 246 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adamantium has joined #nixos
<adamantium>
Curious: is there a meta package that will install typical userland utilities all in one go. Like if i wanted all the things you'd find on your average fedora or ubuntu or debian
<adamantium>
From time to time I find a package is missing that I'm used to just being there on other distros by default, and it annoys me to go edit my nix file after searching for the name of the tool, then finally rebuild switch.
alex`` has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
tmaekawa has joined #nixos
<siraben>
Hm, but if I run "nix-shell --packages coq coqPackages.mathcomp" then I can type "From mathcomp Require Import eqtype." in coqtop
<siraben>
So I guess for now I'll launch Proof General from within a nix shell like that
kreetx has joined #nixos
mexisme_ has joined #nixos
adamanti` has joined #nixos
kreetx has quit [Ping timeout: 248 seconds]
mexisme_ has quit [Ping timeout: 264 seconds]
adamantium has quit [Ping timeout: 268 seconds]
MmeQuignon has joined #nixos
abf_ has quit [Quit: Leaving]
astrofog has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
MmeQuignon has quit [Ping timeout: 245 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
ericsagnes has quit [Ping timeout: 250 seconds]
___laika has joined #nixos
<{^_^}>
[nixpkgs] @FRidh opened pull request #65454 → Python: introduce NIX_PYTHONEXECUTABLE in order to set sys.executable → https://git.io/fjyEO
owickstrom has quit [Quit: Connection closed for inactivity]
<ljxfstorm>
Hello, newbie here. I got a question when configuring default fonts that Plasma 5 have pre-defined default fonts and the 'mkBefore' trick got a 'undefined variable' error. How can I get my prefer fonts over the KDE one?
kenshinCH has joined #nixos
revtintin has quit [Quit: WeeChat 1.9.1]
<clever>
ljxfstorm: lib.mkBefore
<ljxfstorm>
nix-rebuild returned an 'undefined variable' for 'lib'...
<clever>
ljxfstorm: { pkgs, lib, ... }:
kenshinCH has quit [Client Quit]
<ljxfstorm>
'pkgs.lib.mkBefore' worked. Thanks very much.
<Uniaika>
error: attribute 'universal-ctags' in selection path 'universal-ctags' not found
<Uniaika>
unpacking channels...
<{^_^}>
[nixpkgs] @FRidh merged pull request #65295 → Add checkPhase to pythonPackages.astropy and several other related packages → https://git.io/fjDLl
<nek0>
i have activated hardware.opengl in my configuration.nix and have selected my proper nvidiaLegacy driver, but there is still nothing I can start that needs OpenGL...
<nek0>
I tried switching to nouveau, which had the same results...
<cinimod`>
error: Package ‘libapparmor-2.13.1’ in /nix/store/c88f3xrijhhfw6hkqz5q7vr4cy0paafb-nixos-19.03.tar.gz/pkgs/os-specific/linux/apparmor/default.nix:22 is not supported on ‘x86_64-apple-darwin’, refusing to evaluate.
tmaekawa has joined #nixos
<cinimod`>
I will try with 18.09
<symphorien>
nek0: did you reboot ? Opengl relies on environment variables so a switch is not enough
<aria>
would anyone happen to know why my font rendering is really wide with this font? https://i.imgur.com/CIIRczx.png source code pro font from nixpkgs :D
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xelxebar has quit [Remote host closed the connection]
<ottidmes>
What might be the cause that when I try the nixos installer on my laptop the screen remains black for like 5 seconds after selecting nixos from the EFI boot loader, but then it shows NixOS booting, while when I build my own nixos installer based on <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix> the screen remains black
<{^_^}>
[nixpkgs] @Ekleog pushed 2 commits to release-19.03: https://git.io/fjygt
<symphorien>
,locate bin infocmp
<{^_^}>
Found in packages: ncurses.dev, ncurses5.dev
<symphorien>
chaoflow: try ncurses.dev
kreetx has quit [Ping timeout: 245 seconds]
<chaoflow>
symphorien: thx, I can see it in my store and it contains infocmp. However, I "nix-env -iA nixos.pkgs.ncurses.dev" does install the normal version, not the .dev variant.
<symphorien>
hum, probably a limitation of nix-env. Can you use /etc/nixos/configuration.nix or home-manager instead ?
<infinisil>
,libraries chaoflow
<{^_^}>
chaoflow: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<symphorien>
infinisil: here infocmp is an executable
<chaoflow>
symphorien: Is that locate service you used also available outside this channel, e.g. offline on nixos?
<aanderse>
so if i've somehow managed to get a file to exist under /nix/store/trash that has a filename at least 4096 characters long (possibly longer)
<aanderse>
and i can't even ls /nix/store/trash
<aanderse>
would it be ok to remount /nix as rw and just rm /nix/store/trash?
<clever>
aanderse: nix should delete everything in trash next time you GC
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #65115 → blockbook: increase ulimit -n on darwin for packr execution → https://git.io/fjMsE
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjygp
hellrazor has quit [Quit: WeeChat 2.5]
hellrazor has joined #nixos
srid6390803 has quit [Ping timeout: 272 seconds]
kreetx has quit [Ping timeout: 244 seconds]
<symphorien>
I am trying to use breakPointHook. I have attached the build sandbox with cntr attach ....
<symphorien>
it leaves me in /var/lib/cntr
<symphorien>
where can I find the build directory ?
kreetx has joined #nixos
<symphorien>
there is no /build
ericsagnes has joined #nixos
kreetx has quit [Ping timeout: 246 seconds]
johanot has quit [Quit: WeeChat 2.4]
leo60228 has joined #nixos
<leo60228>
hello
<leo60228>
i've purchased a zen 2 processor (currently on a ryzen 2400g), and want to make sure it works on nixos
<leo60228>
i don't see a commit in nixos/systemd that looks relevant
<leo60228>
should i modify the package to build off systemd master?
<symphorien>
nixos has a fork of systemd
<symphorien>
so I don't expect systemd master to work
kiloreux has joined #nixos
<symphorien>
you would have to rebase
<leo60228>
ok
<leo60228>
i guess i'll cherry-pick and PR
<kiloreux>
I am using multiple source nixpkgs sources (through fetchTarball) and it's causing the evaluation time of experessions to take quite some time. Is there anyway to improve on this situation?
<clever>
kiloreux: best option is to use fewer copies of nixpkgs, and use packageOverrides to update select things
<{^_^}>
[nixpkgs] @nbardiuk opened pull request #65472 → vimPlugins.nvim-typescript: Init at 2019-07-27 → https://git.io/fjy2k
srid6390803 has joined #nixos
<kiloreux>
clever, thank you. So there's now way to cache evaluations or something similar?
<clever>
kiloreux: not really
<kiloreux>
clever, Thank you very much.
mmlb has joined #nixos
<leo60228>
wait
<leo60228>
the original zen2 fix was from a nixos contributor
<leo60228>
but it was never pr'd to nixos???
<leo60228>
the fork that fixed it was forked off nixos/systemd, not systemd/systemd
<{^_^}>
[systemd] @leo60228 opened pull request #31 → Cherry-pick "random-util: eat up bad RDRAND values seen on AMD CPUs" → https://git.io/fjy2m
cinimod` has quit [Ping timeout: 246 seconds]
<niso>
why does line 2 fail, while line 5 works? does line 2 try to import [arion doc tests] rather than just arion? http://paste.debian.net/1093286/
<clever>
leo60228: mesa is a weird package in nixos, and you can use the hardware.opengl.package to override it, without rebuilding the world
magnetophon has joined #nixos
stepcut has joined #nixos
<leo60228>
clever: thanks!
srid6390803 has joined #nixos
zupo has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___laika has joined #nixos
<worldofpeace>
__monty__: After looking into that we shouldn't set the platforms like that
<worldofpeace>
__monty__: don't think it would matter at that point
<__monty__>
worldofpeace: Ok, makes sense to me to just have the meta information to be complete. Will amend that.
leo60228 has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
fragamus has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<__monty__>
worldofpeace: Dropped, squashed and pushed : )
mac10688 has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #64931 → wire-desktop: refactor to add Darwin support → https://git.io/fj1kZ
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjyVz
<worldofpeace>
__monty__: thanks, merged
<srid6390803>
why does restarting display-manager.service kills my tmux sessions?
<__monty__>
🎉
kreetx has quit [Ping timeout: 245 seconds]
taylskid has joined #nixos
<taylskid>
hi, I'm trying to use home-manager to link some dot files. I have `".emacs.d".source = ./emacs.d` but it gets linked in from nixstore which is read-only. What's the proper way I should be linking to my emacs conf? I saw someone mention a string of the absolute path, which I also tried but same issue
<clever>
taylskid: you could either link each file seperately (they will still be read-only, but the dir will be writeable)
<clever>
taylskid: or you can use one of the permission fields to make it writeable
stepcut has joined #nixos
<clever>
but nix will undo the changes
o1lo01ol1o has quit [Remote host closed the connection]
matthuszagh has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<taylskid>
Yeah I really just wanted the dir to be writable
<taylskid>
Thanks clever
gagbo has quit [Quit: I'm out !]
zeta_0 has joined #nixos
kreetx has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ng0 has joined #nixos
o1lo01ol1o has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @samueldr closed pull request #48279 → lib.version: change from "pre-" to "post-" → https://git.io/fxBvI
<{^_^}>
[nixpkgs] @samueldr closed pull request #48913 → Updated mysql Package to support the change of root password of the mysql-server → https://git.io/fxXTP
<{^_^}>
[nixpkgs] @samueldr pushed 2 commits to release-19.03: https://git.io/fjywf
mmlb4 has quit [Ping timeout: 244 seconds]
<samueldr>
ayone with knowledge about the haskell ecosystem up to help me review #59583 ? I feel it's likely to be fine to backport to stable, but don't really know what it all means
<{^_^}>
[nixpkgs] @kalbasit pushed commit from @Gonzih to master « fluxctl: init at 1.13.1 (#65433) »: https://git.io/fjywZ
wildtrees has joined #nixos
WilliamHamilton has joined #nixos
<WilliamHamilton>
it is my understanding that if I call `nix-shell` in a dir that has no `shell.nix`, `default.nix` is used instead. My question is: when I call a file with `nix-shell`, what's by default the set of parameters that's passed in?
MmeQuignon has joined #nixos
<clever>
WilliamHamilton: an empty set
<clever>
WilliamHamilton: --arg and --argstr can be used to supply params
<WilliamHamilton>
clever that was a reasonable assumption, but then how can I call `nix-shell` on a `default.nix` that's generated by `cabal2nix`? The packages wouldn't be supplied
Chiliparrot has joined #nixos
<WilliamHamilton>
so my question could be: what's the difference in expected arguments between `default.nix` and `shell.nix` generated by `cabal2nix`?
<clever>
WilliamHamilton: you want to put the cabal2nix output into a foo.nix (named after the cabal file), then use a default.nix, that does haskellPackages.callPackage ./foo.nix {}
<clever>
and shell.nix should `(import ./. {}).env`
<WilliamHamilton>
I see, and if I want to use `withHoogle = true`, where should I put that?
<clever>
WilliamHamilton: not sure where that would go
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<WilliamHamilton>
and I can't understand why, since if I open a repl, `haskellPackages.override` exists
xkapastel has joined #nixos
<clever>
WilliamHamilton: not clear why
<zeta_0>
i can't install some nix packages because they are `broken`, does that mean the packages just do not work, or does that mean some things need to be fixed and/or there is missing things that need to be added? and is there a link to those packages that shows the progress of the things that need to be done before they are marked as stable?
<samueldr>
zeta_0: there is no fine-grained meaning to broken, sadly
<clever>
zeta_0: usually, its because the build fails, and its disabled to stop you from wasting time installing something that wont build
<clever>
zeta_0: but you can force it to build anwyays and try your hand at debugging it
<zeta_0>
well there is two packages that i need that are broken: `haskell-overridez` and `ihaskell`, i guess next week i could try and build them and try to figure out what is not working
<zeta_0>
i am going to spend a lot of time learning and experimenting with haskell so i really want `ihaskell` to make my workflow for that more smooth, and that `haskell-overridez` seems like it will come in handy down the road
<zeta_0>
clever: thanks for the help yesterday, was finally able to install the version of ghc that i wanted(it took a long time), but do i need: `ghcWithHoogle` in order for it to work with `all-hies`? or can i just install `ghc` and install `hoogle` separately with the sub packages? https://gist.github.com/zeta-00/27794e17d45430154a5117eb72776264
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<WilliamHamilton>
zeta_0 that's the same problem I have: I have to understand how to get hoogle inside a `shell.nix` in order to have it playing nice with hie
Acou_Bass has joined #nixos
<WilliamHamilton>
are you using the spacemacs guide that was posted today?
<zeta_0>
infinisil: if you could help with answering this question as well, thanks
srid6390803 has quit [Read error: Connection reset by peer]
srid6390803 has joined #nixos
<zeta_0>
WilliamHamilton: well, i did this in `home.nix`, i am not sure how to do this with `shell.nix`
<infinisil>
Wait what's the problem exactly?
o1lo01ol1o has quit [Remote host closed the connection]
moet has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
justanotheruser has joined #nixos
MmeQuignon has quit [Ping timeout: 268 seconds]
MmeQuignon has joined #nixos
<zeta_0>
infinisil: i got `ghc`, `hoogle` and `all.hies` working together great in `emacs`, but my question is do i have to use `ghcWithHoogle` in order to integrate `hoogle` with `all-hies` or can i install `hoogle` as a separate package with the other haskell sub packages, if i do this will `hoogle` not integrate with `all-hies`? https://gist.github.com/zeta-00/27794e17d45430154a5117eb72776264
<infinisil>
Seems like you answered the question yourself
<dminuoso>
I want to write a minor mode that executes shell commands. Now the problem is, that the shell commands I want need to be executed from inside a nix-shell relating to the project Im in.
<dminuoso>
(Emacs)
<dminuoso>
Does someone have a hint for me perhaps?
<zeta_0>
infinisil: well i was just trying to clarify some of the confusion i had, but so far `all-hies` has been great, sometimes it slows down and freezes but i think that has to do with emacs though
MmeQuignon has joined #nixos
<infinisil>
WilliamHamilton: What's in the overlay?
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil>
zeta_0: all-hies is just a way to get HIE, it does nothing more than allowing you to install it, so you need to thank the HIE developers for HIE working great :)
<infinisil>
WilliamHamilton: Yeah .extend doesn't work with .override.. It's a bit of a mess
<infinisil>
I suggest using .override for everything
<dminuoso>
infinisil: Mmm. johnw seems to suggest running emacs from inside the project is the easiest solution heh.
<dminuoso>
As long as your emacs starts up blazingly fast, it's a somewhat workable solution.
<infinisil>
WilliamHamilton: Well, it's even a bit more complicated than that to actually have multiple overrides compose: `.override (old: { overrides = lib.composeExtensions (old.overrides or self: super: {}) (self: super: { ... }); })`
o1lo01ol1o has joined #nixos
<infinisil>
dminuoso: Yeah, and that's also the most reliable solution. emacs-direnv can have some trouble with the order of operations
<WilliamHamilton>
is there a way to put `ghc = super.ghc // { withPackages = super.ghc.withHoogle; }; ghcWithPackages = self.ghc.withPackages;` in the overlay? I tried but encountered infinite recursion
<infinisil>
noonien: You should be able to `nix copy` it from one to the other system
<noonien>
i build it using `gcc` right now
<noonien>
don't have a nix build yet
kori has joined #nixos
<infinisil>
noonien: You could just scp the directory over
<noonien>
the source code?
<infinisil>
Yea
<noonien>
well, then i need all the other build-time dependencies :D
<noonien>
would be easier just to setup nix build in this case
<infinisil>
Well you can probably ignore the source code if you want, but at least the binary and the nix files so you can nix-shell to get the dependencies
<noonien>
so there isn't really any way around nix, if i choose to use nixos
<infinisil>
Yeah mostly
<WilliamHamilton>
infinisil could I use `properExtend` from the issue you linked? It's unclear to me how to do the proper modification
<noonien>
kind of a bummer :(
<infinisil>
WilliamHamilton: Regarding the overlay, I suggest not trying to override `ghc` directly, but go through `haskellPackages` or `haskell.packages...` instead (which also influences the top-level ghc attribute)
<infinisil>
noonien: So your problem is that you can't copy a binary around and have it run just like that on other systems?
<WilliamHamilton>
infinisil I'd like a concrete example, sadly I don't follow your previous comment
<noonien>
infinisil: well, kind of. i don't want any binaries to run like this, that's missing the entire point of nix. but a hello world shouldn't be that hard
<infinisil>
WilliamHamilton: For overriding the ghc attribute: `haskellPackages = super.haskellPackages.override (old: { overrides = lib.composeExtensions (old.overrides or hself: hsuper: {}) (hself: hsuper: { ghc = hsuper.ghc....; }); })`
<noonien>
i'm probably going to create a nix-build file, but i have quite a few single-source binaries i want to run on other systems, and it gets pretty annoying
<clever>
noonien: one min
<infinisil>
noonien: Yeah that is indeed missing the point of Nix. If you made it a working nix-build (which shouldn't be very hard), you can easily run it on other systems because of how nix tracks dependencies
<noonien>
(the root drive is also encrypted, but that's irrelevant
<infinisil>
noonien: There are ways, but I've never used them. Nix does support arbitrary store locations
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<noonien>
when doing `import <common-stuff>`, common-stuff is a channel right? can i only add a channel to a http url or can i make it point to a local path?
<___laika>
whats the best route to go about getting something merged to improve build-support for a language? i can work on the PR, but it seems like the ocaml build-support nix expression itself hasn't been touched since 2016. how would i go about finding a good reviewer and making sure it gets merged?
<___laika>
i guess im asking, if a language doesn't receive a lot of attention in nixpkgs, would i be better served working on an overlay for my own system or working on a PR?
<infinisil>
noonien: As I just showed above, you can make it point to a file
<noonien>
yeah, i just wannted something more global, so i don't have to get the right paths always
<infinisil>
___laika: If you have the time, motivation and knowledge, I'd say you should definitely go for a PR. You can ping people that touched the file before, or have packaged ocaml stuff in nixpkgs
__monty__ has quit [Quit: leaving]
justanotheruser has quit [Read error: Connection reset by peer]
<infinisil>
noonien: channels aren't any more global than the nix.nixPath setting
zupo_ has joined #nixos
zupo has quit [Ping timeout: 245 seconds]
<___laika>
ill go for it
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
johnny101m2 has joined #nixos
<averell>
how could i wrap a setgid program? security.wrappers will not survive a wrapProgram and i tried makeWrapper with the wrapper, but that asserts the executable already exists at package creation time for some reason.
<samueldr>
nothing in the store can have set*id permissions
<samueldr>
on non-nixos, not sure what can be done
<averell>
i know. that's what i did, but these wrappers they don't survive makeWrapper, because the only set effective UID
alex`` has quit [Ping timeout: 245 seconds]
<averell>
so i can't security-wrap a wrapProgram. i tried the reverse, but there is an assertExecutable in makeWrapper, so i can't reference a non-existant /run/wrappers/bin/thing
<samueldr>
oh, I see, sorry for having misread; somehow I didn't see you were using security.wrappers :/
<averell>
maybe i can just override the assertExecutable in my derivation? but I'm not sure I'll get that through review :)
alex`` has joined #nixos
<samueldr>
involve Cunningham's Law
<noonien>
are there any simple examples of a nix build file that just compiles a .c file in the current directory?
Guest9052 has quit [Quit: WeeChat 2.4]
johnny101m has joined #nixos
johnny101m2 has quit [Ping timeout: 245 seconds]
lukas7257 has joined #nixos
<lukas7257>
Hello, Thanks for this awesome Operating System
<lukas7257>
i found a problem which is kinda urgent
<{^_^}>
#60289 (by Infinisil, 13 weeks ago, closed): [Experiment] Separate security wrappers from NixOS
<samueldr>
neat
<___laika>
so, infinisil, curious if you can offer some guidance: in ocaml's build support expression, a package called camlp4 is included, which used to be used to implement syntactic extensions for the language. it has been deprecated, and hasn't yet received support for the newest ocaml 4.08 compiler. my thought is, in order to make sure older versions continue working as expected, pass a "supportsCamlp4 ? true" flag
<___laika>
to the argument set in the build support expression, and pass false when the compiler version is above 4.07. does that sound like a good pattern to adopt?
<infinisil>
___laika: Sounds good to me, Haskell's generic-builder.nix does things like this too
<{^_^}>
[nixpkgs] @ajs124 closed pull request #53024 → sshd: Add user options for ForceCommand and ChrootDirectory → https://git.io/fhI2m
<infinisil>
lukas7257: I've had such a teamspeak segfault for a while earlier this year I think, but I haven't been able to figure it out. Because teamspeak is closed-source it's almost impossible to debug.
<lukas7257>
:/
<infinisil>
lukas7257: I ended up switching to the free and open-source mumble instead, which doesn't and won't have such problems
<{^_^}>
[nixpkgs] @ajs124 reopened pull request #53024 → sshd: Add user options for ForceCommand and ChrootDirectory → https://git.io/fhI2m
<clever>
infinisil: i looked into it earlier, the wrong qt is being used
<lukas7257>
thanks you two, i really need TS for work tomorrow and i dont want Arch anymore
<clever>
infinisil: it was compiled against qt 5.6, but 5.6 has broken h264 support, so it doesnt build
<{^_^}>
[nixpkgs] @arcnmx opened pull request #65483 → llvm8 bare metal fixes → https://git.io/fjyrM
<clever>
infinisil: but teampseak doesnt use h264, so disable!
<infinisil>
Nice
<infinisil>
lukas7257: So you can try above nix expression, just put that somewhere, then `nix-build path/to/file.nix`, followed by `result/bin/ts3`
andrewzah has joined #nixos
justanotheruser has joined #nixos
Okinan has joined #nixos
<andrewzah>
hi all, are there people here who have experience using/working on Carnix?
MmeQuignon has quit [Ping timeout: 272 seconds]
<andrewzah>
i have a question about a generation issue related to that
<lukas7257>
infinisil its running, it gives no output
MmeQuignon has joined #nixos
<lukas7257>
oh, now it gives output
kiloreux has quit [Ping timeout: 272 seconds]
<___laika>
are there any detailed guides for contributing to nixpkgs? CONTRIBUTING.md is rather short
<srhb>
andrewzah: Your best bet is probably to ask and see if someone knowledgeable responds :)
<srhb>
___laika: It's a bit scattered, there's some notes in the manual too. Any specific questions?
<___laika>
nothing overly specific: ive made some rudimentary changes that i think will work, so i imagine the next steps are to test my local copy of nixpkgs where i saw a problem originally and make sure things work
<___laika>
beyond that, i was curious about linting procedures, tests, etc
<andrewzah>
i'm building a rust crate with carnix that pulls in `serenity-rs`, which has a feature of `http = []`. in its errors.rs, it uses #[cfg(feature = "http")] to gate a Reqwest crate dependency
<andrewzah>
when I run carnix generate-nix --standalone --src ./. it generates a check for reqwest, not http
<andrewzah>
++ (if features.serenity."0.6.3".reqwest or false then [ (crates.reqwest."${deps."serenity"."0.6.3".reqwest}" deps) ] else [])
<mkaito>
few people actually use carnix. tazjin and andi- are the only ones I know do.
<mkaito>
plus the author seems to be MIA busy or something
ericsagnes has quit [Ping timeout: 245 seconds]
<mkaito>
it's probably worth opening an issue on pijul nest or nixpkgs github to get some more leg out of the discussion
<andrewzah>
yeah
<andrewzah>
i'm still building the Cargo.nix now
<{^_^}>
[nixpkgs] @arcnmx opened pull request #65485 → nixos/taskserver: crl file is optional → https://git.io/fjyrd
<{^_^}>
[nixpkgs] @TheSandwichMakr opened pull request #65486 → multimc: wrapQtAppsHook, add xrandr for lwjgl 2.9.2 → https://git.io/fjyrx
<arcnmx>
andrewzah: hm, what's the entire generated manifest look like? that check isn't necessarily wrong, the crate just isn't meant to be used without both reqwest and http features set (and I hope carnix models the inter-feature stuff?)
<mkaito>
arcnmx: I had the same issue. carnix generates a check for a `reqwest` feature on `serenity`, doesn't find it, and so it doesn't pass the required `--external`. it *should* pull in `reqwest` via `rustls` though, but doesn't.
<mkaito>
I verified this by adding a `http = [ "reqwest" ]` bogus feature in `serenity`
wildtrees has quit [Remote host closed the connection]
<mkaito>
if you replace the conditional feature gate in crates-io.nix for serenity->reqwest, it also compiles fine.
<mkaito>
it's just checking for the wrong feature gate
justanotheruser has joined #nixos
<arcnmx>
mkaito: yeah I just found your post with the tarball, and was looking through the generated .nix file.
<arcnmx>
been meaning to look into it but time and effort... I started to get into carnix and got halfway through rewriting buildRustCrate before realising I needed to be doing other things
<mkaito>
if any of you who actually know hot to carnix could update the nixpkgs manual, that'd be great :P
<andrewzah>
well, it's not invoking diesel_cli per se but the main app binary is calling code from the diesel_migrations crate
<mkaito>
oh you're embedding those
<mkaito>
yeah can't do that, requires glibc 2.29, and nixpkgs has 2.27, and I *really* don't want to open that can of worms
<andrewzah>
so what do you mean when you say make a custom derivation?
<mkaito>
see the file I linked
<mkaito>
there's effectively 3 derivations
<mkaito>
1 pulls from git, one wraps it and adds a cargo.nix, then that one is fed into buildRustPackage