<supersandro2000>
Not really but I generally nit pick people with something like: nixpkgs-fmt plus don't put 100 inputs into 100 lines, don't use let in for pname, version, try to write readable but minimal bash code and for python always docheck or pythomimportscheck
<supersandro2000>
don't do strange line breaks just to have 80 chars lines.
acarrico has quit [Ping timeout: 256 seconds]
<supersandro2000>
other than that just look at some other files which are similar to yours
<karantan>
I was wondering if anyone can help with this. We would just need someone that has experience with creating nixos packages to look at this repo
<karantan>
and tell us what do we need to do. I know the basic things but I get quickly lost. I'm fairly certain we would need to modify our current Makefile but I want to make as minimal changes to the repo as I can
<{^_^}>
[nixos-hardware] @Mic92 merged pull request #214 → apple/macbook-pro/12-1: PM: set cpuFreqGovernor and power Up/Down commands → https://git.io/Jk9Kn
<{^_^}>
[nixos-hardware] @Mic92 pushed commit from @sevenfourk to master « apple/macbook-pro/12-1: PM: set cpuFreqGovernor and power Up/Down commands (#214) »: https://git.io/JIfjT
<{^_^}>
[nixpkgs] @xaverdh opened pull request #105559 → iwd: don't include testing tools by default → https://git.io/JIfjm
ece has quit [Read error: Connection reset by peer]
evalexpr has joined #nixos
ece has joined #nixos
<questionasker>
hello, i have question: if a machine doesnt boot properly after successfull "nixos-install", can i just mount everything to /mnt again, change configuration.nix and then call nixos-install again, or do i have to use nixos-enter and then nixos-rebuild?
<alvaro121>
Is there a way to have nix-direnv do something equivalent to `nix-shell -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'`? I get `error: cannot auto-call a function that has an argument without a default value ('stdenv')`
<alvaro121>
and I don't wanna edit the `default.nix` file.
<regnat>
alvaro121: Add a shell.nix which does that?
<regnat>
(never used nix-direnv, but I guess it'd pick the shell.nix first if it exists)
<alvaro121>
How would it look like?
<regnat>
Exactly what you passed to nix-shell above
<regnat>
with import <nixpkgs> { }; callPackage ./default.nix { }
<alvaro121>
Thanks, it seems to work
<alvaro121>
I thought there may be an option to configure `nix-direnv` so that I don't have to create `shell.nix` manually.
<benny>
if I have a service file and I want to use an external to generate a default config if an option isn't set, how do I declare that I'm pulling in an external pkg? or can I just {pkgs.tool} inside some pkgs.writeText and it will work?
<asheshambasta>
So, I've upgraded from 20.03 to 20.09 on my thinkpad P52s, and now when I boot, I no longer have wifi and no fonts are getting displayed in xmonad. Any suggestions on where to look?
<eyJhb>
benny: you can just do that yes
joey has quit [Remote host closed the connection]
joey_ has joined #nixos
<benny>
eyJhb thanks!
<eyJhb>
Remember to do something like ${pkgs.tool}/bin/tool
<TheSirC[m]>
I thought I could just say `perso.vpn.type = "server";` and use `mkIf (cfg.type == "server")` but Nix is sending back "A definition for option `perso.vpn.type' is not of type `submodule'."
<{^_^}>
[nixpkgs] @ehmry merged pull request #104980 → Add `buildDhall*Package` support for generating documentation → https://git.io/JkS9Q
<{^_^}>
[nixpkgs] @ehmry pushed commit from @Gabriel439 to master « Add `buildDhall*Package` support for generating documentation »: https://git.io/JIUeq
ss2 has joined #nixos
<earvstedt>
apart from the DDOS potential, what's the security impact of running a hercules CI agent (connected to a public github repo) on my personal home server?
<earvstedt>
is a nix build sandbox escape feasible?
<roberth>
earvstedt: agent will only build branches from your own repo. PRs aren't built until you "approve" them by creating a local branch. For example bors can do that for you
<roberth>
earvstedt: feasible idk, but it hasn't been audited fwiw
fendor has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<earvstedt>
roberth: thank you!
<roberth>
earvstedt: plans exist for untrusted build on separate infra, but current focus is not on oss ci which is quite different from typical dev/deploy needs
FRidh has quit [Ping timeout: 256 seconds]
<asmanur>
Hi, I just installed NixOS, and I have a font problem: every app is using the monospace (and ugly) Fixed font, and i cannot seem to change it. Is that a known issue ?
FRidh has joined #nixos
gustavderdrache has joined #nixos
<ben_>
Why might I be getting `mkdir: command not found`? Do I need to include a specific derivation?
pushqrdx has joined #nixos
cr4y1 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @jonringer opened pull request #105586 → zfs: add new maintainers, update homepage → https://git.io/JIUfp
ddellacosta has joined #nixos
<evanjs>
Argh. Anybody know what the complete dep list for nvim 0.5.0 looks like currently? I currently have libuv, msgpack, and vimPlugins.treesitter, but it's failing to find libuv--hey wait... libuv is already required by neovim?? whaaat
pmy has quit [Ping timeout: 256 seconds]
<evanjs>
so is msgpack, so I guess I _really_ don't know what is happening here
<ben_>
thibm: I initially had `unset PATH` but even just a simple `mkdir $out; echo test > $out/file` gives the error.
<asmanur>
I have fonts installed, and i configured some software to use a nicer font, but for instance I cannot change the font of firefox
<asmanur>
(I can change it in the preferences dialog but to no avail)
<vuko>
ben_: is it derivation {...} or stdenv.mkDerivation {...}?
<ben_>
vuko: just derivation {...}
<thibm>
ah
<ben_>
but stdenv.mkDerivation does the same
gustavderdrache has quit [Read error: Connection reset by peer]
gustavderdrache has joined #nixos
<vuko>
ben_: are you overriding builder in stdenv.mkDerivation?
<evanjs>
so as far as I can tell, I just need to add treesitter to the buildInputs for neovim, but there are other problems that arise, and I am unsure if they're related to adding that dependency
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<esotericn>
so I have a project here that requires some dependencies from pypi that aren't in nixpkgs. I'm defining them manually at the moment as a learning exercise. I have a python package that I'm using the function `pkgs.python3Packages.buildPythonPackage` to build.
zupo has joined #nixos
<esotericn>
what I need to do is overlay it somehow to modify one of the requirements. it requires `psycopg2-binary` but works with `psycopg2` (which is in nixpkgs). if I clone it locally and use my local source, I can just patch it, but that's obviously not The Nix Way. is there a simple way to modify python package dependencies?
<esotericn>
or, I could even just ignore the dependency check and manage it myself
<esotericn>
(`install_requires` in setup.py, for clarity)
Fare has quit [Ping timeout: 264 seconds]
FRidh has quit [Ping timeout: 260 seconds]
FRidh has joined #nixos
<evanjs>
teto: any thoughts on getting the current NVIM 0.5.0 nightly to work? Seems to require treesitter, but just adding that doesn't seem to work, and it seems to have issues finding dependencies it already has defined, etc.
<Reventlov>
hey
<Reventlov>
is there some bcc python package in nix ?
<teto>
evanjs if you have flakes, you can use `nix run github:neovim/neovim/flake#nvim`, i will add the flake in master some time this week so that it is always up to date
<evanjs>
teto: gah, I _really_ need to start using them....
<evanjs>
teto: up to date stable or nightly?
<teto>
NIGHTLY
<evanjs>
yessssss
<teto>
oups sry caps lock xD
<evanjs>
eh it works haha. And alright sweet. Need to figure out how I can integrate flakes sometime soonish. Been a while since I made any major changes to my config x_x
<teto>
master is more unstable than usual, there is just so much activity going on with the upcoming release
<teto>
so save often :)
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JIUq7
<Henson>
I'm trying to build my own minimal NixOS install CD with openssh enabled. But even if I specify services.openssh.enable = true, the service does not get installed and I have to start it manually. Does anybody know why?
jonatanb has quit [Remote host closed the connection]
cosimone has joined #nixos
earvstedt has left #nixos ["ERC (IRC client for Emacs 27.1)"]
jonatanb has joined #nixos
<clever>
Henson: you need to use mkForce, one sec
<Henson>
clever: I've tried that, but it doesn't help
<clever>
Henson: on wantedBy, getting an example...
<thibm>
I though it is now enabled as default. Maybe not in the release
<Henson>
clever: yeah, I saw the wantedBy being mkForced to [], but I didn't think that would preclude the service from being installed, just from being started
<Henson>
thibm: no, I didn't, as I didn't expect that line would prevent the service from being installed, just from being run at startup. But I see that getting rid of the mkOverride is exactly what the patch clever referenced does
jonatanb has quit [Ping timeout: 256 seconds]
<Henson>
clever: yes, it's there
<clever>
Henson: then the service is being installed, and you just need to `systemctl start sshd` or mkForce wantedBy
<Henson>
clever: I see. If I do "systemctl list-unit-files" I see it in there, so it's installed by not enabled, which is why it's not showing up with the "systemctl -a".
<Henson>
ok, thanks everyone, I just wasn't digging deep enough!
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIUsZ
Ariakenom has quit [Read error: Connection reset by peer]
<evanjs>
So is there anything on the wiki or wherever about integrating flakes with system configs/NixOS yet? I am aware of how it is similar to niv in terms of pinning and etc., but don't know much about how it would work outside of that
neiluj has quit [Ping timeout: 240 seconds]
mtr has joined #nixos
neiluj has joined #nixos
<benschza>
While upgrading to NixOS 20.09 the build is failing on "/nix/store/5b6q5rkyzb6m0h4h8l2n50l6i624arg5-manual-combined/manual-combined.xml fails to validate" - is there a way I can ignore that failure or remove the manual dependency? :)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ericsagnes has quit [Ping timeout: 272 seconds]
<evanjs>
benschza: I _think_ it was something like documentation.nixos.enable
<evanjs>
I believe I encountered this issue, but can't remember how I addressed it. I feel like it was something like HM or etc. being a bit behind or idk
pmy has quit [Ping timeout: 240 seconds]
<benschza>
That's the option! Thanks, I'll go with that for now, and try re-enable/fix when I get some free time.
<mtr>
I just fixed this issue for me; it was indeed a home-manager thing for me
<mtr>
my temporary fix was putting `programs.manpage.enable = false;` in home-manager's config
<mtr>
the real fix was switching to the 20.09 home-manager channel
pmy has joined #nixos
<{^_^}>
[nixpkgs] @timokau merged pull request #102215 → [20.09] undervolt: expose power limits as Nixopts → https://git.io/JT9x9
<{^_^}>
[nixpkgs] @timokau pushed 2 commits to release-20.09: https://git.io/JIUZ5
<mtr>
hyper_ch I'm sitting here with 1TB waiting for my paycheck
<evanjs>
I definitely prefer it over XZ
<hyper_ch>
wait, default is lz4
<hyper_ch>
not gzip
cr4y1 has quit [Ping timeout: 240 seconds]
<hyper_ch>
no, now I'm confusing things
<hyper_ch>
mtr: what will you do with that 1 TB?
<hyper_ch>
I guess changing on the fly won't working... I guess you have to zfs send/recv datasets if you want to use zstd
<hyper_ch>
actually now.... I think you can change it on the fly
<mtr>
hyper_ch: I think it's about 80% right now haha, had to delete my Dr Who collection recently
<Fare>
Hi. I have a collection of packages in files currently called with callPackage ./foo.nix {}; How do I write an overlay so that my packages see the fixed-point of the individual changes rather than each a local change that isn't seen by other packages?
<{^_^}>
[nixpkgs] @FRidh pushed commit from @lukegb to master « nixos/tests/misc: account for cgroupv2 »: https://git.io/JIUBd
<evanjs>
hyper_ch: yeah, either way, I try to use zstd for basically everything now. Faster than xz and the compression is extremely competitive with XZ and etc
<Fare>
I have a vague sense that the answer is in lib/customization.nix, but it's not clear HOW to use it.
<evanjs>
Now if only there was a way to switch filesystems without wanting to hurt myself
astro has left #nixos [#nixos]
<evanjs>
Currently using F2FS for everything. I probably need ZFS with snapshots and etc., anyway...
<Henson>
btrfs made me lose all of my data after using it with a bad memory stick
<hyper_ch>
(well, I had backups) but still
Lordcirth has quit [Read error: Connection reset by peer]
jess| has joined #nixos
<evanjs>
that was my experience with btrfs, and, while I'm sure I might've been able to better handle it by better use (or lack there)of the recovery tools, I don't think I've encountered any similar situations with F2FS so far
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lordcirth has joined #nixos
<hyper_ch>
I thought with a cow filesystem it should be hard to render a pool unusable
<hyper_ch>
a simple power outage shouldn't be able to cause that
kalbasit has joined #nixos
<Henson>
hyper_ch: same here, but I went back to ext4 after that
jess| is now known as jess
<hyper_ch>
Henson: me too, then I discovered zfs.. .which replaced, luks/dm-crypt, rsync, mdadm and ext4
<hyper_ch>
I used rsync to create backups on ext4
<evanjs>
Just a few reasons I want to actually get into it. Don't think I've tried it since I was on Gentoo
<evanjs>
And since then, NixOS merged it and it should be 1000x easier now
<hyper_ch>
nixos makes it easy to use zfs
<Henson>
hyper_ch: yes, I ran zfs on linux for a year or two about 3 years ago, but it had serious memory bloat issues. I then switched to using ZFS on FreeBSD for my fileserver, which works much better.
<evanjs>
What was the thing I read about the potential ZFS license dispute on NixOS? "We'll cross that bridge when we get there" or something like that? :P
<gchristensen>
afaik a recent patch should have improved the memory issues
<hyper_ch>
zfs just likes to use all the ram available.. haven't seen draw back yet except not freeing up ram quickly enough when trying to start a vm
<evanjs>
Though I wonder why I haven't seen it built-in elsewhere outside Ubuntu/have seen other comments re the licensing issues since then
<hyper_ch>
ubuntu also supplies zfs
<Henson>
hyper_ch: I once inadvertantly unplugged a 6 disk ZFS fileserver while it was syncing the drives while the computer was shutting down. That caused the system not to be able to boot, but booting up with a FreeBSD install disk and remounting the filesystem fixed the errors. It said I would lose "5 seconds" of data, which was not a problem. I rolled back to the snapshot I took before the upgrade
<gchristensen>
> pkgs.zfs.name
<{^_^}>
"zfs-user-2.0.0"
<Henson>
hyper_ch: I was doing and did it again and it worked fine
<gchristensen>
yeah, you don't need to do that by hand, lordcirth
<gchristensen>
evanjs: ah
heyitsrama has joined #nixos
<gchristensen>
as long as your fileSystems module options include a ZFS dataset
<Lordcirth>
Ah ok, cool
<{^_^}>
[nixpkgs] @veprbl closed pull request #53787 → [PoC] fetchurl: use Software Heritage as a content addressable mirror → https://git.io/fhZ5Z
<Lordcirth>
Was that also true in older versions?
<evanjs>
gchristensen: like I was worried I'd need to wait for it to compile on kernel updates again. Though I guess that's less of an issue now since I have auto pull+updates on
<gchristensen>
lordcirth: maybe in the 18.x series
<Lordcirth>
Ok, I was probably reading old guides at the time
<Fare>
Is there a good tutorial on how to write overlays so that a bunch of mutually-recursive and/or at least deeply dependency-nested packages are overridden together?
<gchristensen>
Fare: rule of thumb is always use "self" unless you're overriding a parent, then use super
<Fare>
I know how to use self and super in my overlays... but must the original packages in nixpkgs also be written in that style, or does callPackage do some magic for that already?
<Fare>
if callPackage does the magic, what is the proper way to look inside the callPackage to modify something?
<Fare>
e.g. I want to override the src of 5 packages that have mutual dependencies... how do I do that?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIUzf
<simpson>
Fare: I'm not sure if there's good reading on it, but `newScope` might be what you want; this allows you to make a custom inner nested package set *inside* of an existing `callPackage` framework. You'll get a new inner `callPackage`.
saschagrunert has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @veprbl closed pull request #84867 → protobuf: do a release build (without -g) → https://git.io/JvpiD
<simpson>
This is done in many of the language-specific areas of nixpkgs, so it might be useful here too since IIUC you're packaging a new-to-nixpkgs language ecosystem.
<Fare>
the documentation for newScope suggests it's what I want, but without some examples to cargo-cult from it's hard to guess the proper usage.
<Fare>
simpson, although... I'm not sure I need a newScope, I just want to use the existing framework at a global scope, if possible.
vidbina has joined #nixos
<Fare>
I suppose my question is: how do I go from self: super: to callPackage and vice-versa.
<simpson>
Mm, a good question. I don't know the answer, and I'm pretty sure that it's not in the manual.
<Fare>
I don't want to override the *derivation* (or do I?) I want to override some inner data structure from which the derivation is computed (or is it the same thing somehow)?
<Fare>
and then have the derivation recomputed and overridden, with correct fixed points.
jonatanb has joined #nixos
proofofkeags has joined #nixos
graf_blutwurst has quit [Remote host closed the connection]
<simpson>
Oh, that suggests some reading in nixpkgs; git-grep for `callPackage = newScope self`
<simpson>
I think that you do want to override derivations.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
<Fare>
I think I want to override derivations, but not just derivations: always non-derivation items that are not directly fields of derivations.
<Fare>
... and to think this stuff was invented in 1978, and is still not done right (at least, Nix is *almost* there).
nDuff has joined #nixos
<Fare>
(I believe Nix is there inside, but it's just that the interface is terrible and the legacy code interferes)
<LambdaDuck>
Is it possible to tell a flake to use the nixpkgs version from another flake that you depend on? Essentially the reverse of inputs.other-flake.inputs.nixpkgs.follows = "nixpkgs";
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #103163 → macdylibbundler: Should propagate dependency on otool → https://git.io/JkfAo
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed commit from @nomeata to master « macdylibbundler: Should propagate dependency on otool (#103163) »: https://git.io/JIU6w
<tpw_rules>
i have a proprietary binary shared library which needs to be able to find the locales or some functions don't work. setting the LOCALE_ARCHIVE environment variable works but i don't like that solution because i can't be sure that everybody who uses the library will do that. how can i fix this problem?
<tpw_rules>
i can't like wrap a .so in a shell script
<supersandro2000>
but you need to execute some binary right?
<tpw_rules>
no, the derivation provides a shared library which other programs load
<supersandro2000>
or do you mean you need to set it when using the so?
<thibm>
lukegb: yeah I thought about that too, I think it's awful and will break :p
<lukegb>
thibm: agreed :P
ris has joined #nixos
lunik1 has joined #nixos
<thibm>
tpw_rules: do you package/provide the proprietary .so itself or a package using it?
<tpw_rules>
yes, when another program uses the .so that environment variable needs to be set. is there a way to configure the locale search path or whatever without an environment variable? iirc the library uses boost and the locale.h functions
<tpw_rules>
it provides the .so itself (plus some demo/setup binaries that use it)
<thibm>
I meant, you, do you simply use the .so in a package or do you plan to package the .so too (such that it can be reused)
<thibm>
In the former, you can wrap your binaries instead
<eyJhb>
I thought that paths was relative to the file ? Eg. if A imports B, and B want to import C, the path to C is relative to B? Or am I missing something?
<tpw_rules>
frankly i think i am the sole person at the intersection of crazy, nix experimenter, in the field that the manufacturer provides products to, and who needs to use their products which are driven by this .so BUT i'd like to know how to do it properly
<tpw_rules>
it's definitely the latter
<thibm>
Yeah that what I thought :D
<thibm>
In that case you can wrap your own programs
z0k has quit [Ping timeout: 264 seconds]
<thibm>
Easy solution. (I admit that don't know how to do it otherwise)
Boomerang_ has quit [Ping timeout: 246 seconds]
<tpw_rules>
yeah that's what i'm doing. i wasn't sure if there was like "oh just symlink the locale files next to the .so and the locale system will find them" or whatever. i don't know how it works, or who even uses LOCALE_ARCHIVE?
jonatanb has quit [Remote host closed the connection]
<lukegb>
LOCALE_ARCHIVE is used by patches to glibc iirc
z0k has joined #nixos
<lukegb>
Unfortunately, yeah, wrapping the program is likely to be the most viable thing. Otherwise your only option is a setupHook, I think, and that's super ugly and fairly fragile.
<lukegb>
Maybe someone else has a better suggestion :(
<tpw_rules>
i have it working so i can just leave a big comment to do that. would nixpkgs be interested in a driver for the IDS uEye series of industrial vision cameras?
<Lordcirth>
tpw_rules, have you tried steam-run? It's large, but seems to make a lot of things "just work" that work on normal distros
cr4y1 has joined #nixos
<tpw_rules>
i mean everything works except for this weird thing where the library can't save image files if it can't find the locale archives
<tpw_rules>
(or if the store path is too long but i digress...)
sbock has quit [Ping timeout: 272 seconds]
<thibm>
The worst thing I have packaged is a ~30GB .tar.gz containing all the dependencies of the tools, doing stupid installation checks, using badly written shell wrappers (doing stupid stuff like resetting $PATH), etc.
<thibm>
And the company behind that is about to be acquired for $35 billions.
<tpw_rules>
vivado?
<tpw_rules>
yup lol
<{^_^}>
[nixpkgs] @andir merged pull request #104203 → nixos/sane: bump the MaxConnections to a reasonable amount → https://git.io/Jk0qE
<tpw_rules>
the only janky thing this does is use grep and dd to unpack the self extracting installer
jonatanb has joined #nixos
<thibm>
oh, and IIRC, the .tar.gz contained encrypted tarballs.
<thibm>
So you could not (easily) unpack and install all the stuff yourself
<tpw_rules>
mmm, encryption just strong enough that "breaking" it is a violation of the DMCA
<thibm>
tpw_rules: extracting it is one thing, making it works in Nix world is something else ;)
<tpw_rules>
yeah i was surprised about how it mostly worked the first go. only issues i found are this locale archive thing and that the config file parser overflows something and dies if the firmware files are installed to a path that's too long
<thibm>
that software looks robust :p
<thibm>
same for Vivado, it's really easy (really) to break it. And you cannot fix it yourself, so you lost time finding workarounds.
<tpw_rules>
fortunately i've got no choice!
<tpw_rules>
but my consolation is now that i've fixed those problems in the derivation they won't happen again
<thibm>
tpw_rules: do you know buildFHSUserEnv? It may help for your path that's too long problem
<thibm>
(and it helps generally when packaging proprietary stuff)
<tpw_rules>
i solved the problem by just moving them to a folder with a shorter name. i can write the config file that tells where they go
<thibm>
OK
<tpw_rules>
and again, would that work with a .so? the program i'm writing will use the library but i'd rather not put it in that sort of thing
jonatanb has quit [Remote host closed the connection]
jonatanb has joined #nixos
virus_dave has quit [Quit: virus_dave]
<thibm>
sorry, what would help?
<tpw_rules>
actually there is another problem which is that the .so and the driver program communicate through files in /run/ueyed which can't be created except with sudo it seems
<tpw_rules>
and disappears on reboot
<tpw_rules>
the buildFHSUserEnv would work for a shared object
<thibm>
the .so file would goes to /lib (I guess) if you use buildFHSUserEnv for your binaries
berberman has joined #nixos
<bbigras>
any way to get the old sha256 format when using nix-prefetch-github? I get `sha256 = "sha256-b8gNzGIXnbwS/AtYgSdYmPk0RIM9Ibid/l9/vLsdDWI="` now.
juboba has joined #nixos
aleph- has quit [Ping timeout: 260 seconds]
<juboba>
hi all
<Lordcirth>
bbigras, you want hex?
<bbigras>
I think so. oh I guess base 64 decode and encode in hex
<lukegb>
I think there are nix commands for converting them as well
<bbigras>
thanks
<bbigras>
lukegb++
<{^_^}>
lukegb's karma got increased to 8, it's a crit!
<tpw_rules>
is there any preference on which to include in derivations?
<juboba>
how can I start to modify a derivation? What I want is to prepare the patch I want to apply to an existing derivation. I don't know very well where to start.
<energizer>
i can't properly resume from suspend. screen stays black. ssh connects and then times out. kernel log: https://bpa.st/JUBA any ideas? only suspicious thing i notice is `kernel: amdgpu 0000:09:00.0: [drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring gfx test failed (-110)` but i'm not an expert at this
<energizer>
and also `kernel: BUG: kernel NULL pointer dereference, address: 0000000000000008`
domogled has quit [Ping timeout: 240 seconds]
<LambdaDuck>
How do I run nix develop --dry-run? That flag doesn't exist for me.
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #105611 → python3Packages.mne-python: init at 0.21.2 → https://git.io/JIUQs
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JIUQl
<srid>
Does anyone know how I can actually use a usb wifi adapter driver enabled via `boot.extraModulePackages = [ config.boot.kernelPackages.rtl8812au ];`. I see that the 2nd wifi card is not actually showing up in `ifconfig`
<{^_^}>
nix#4295 (by fzakaria, 23 hours ago, open): error: moving build output '/nix/store/...-source' from the sandbox to the Nix store: Permission denied
<srid>
(The USB wifi adapter came with a mink disk that has RTL8811/RTL8812 on its label)
<fzakaria>
It's getting quite a lot of +1s
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
<srhb>
tpw_rules: re. hash types, since 20.03 is EOL, both master and current stable, 20.09, declare minimum version of nix as 2.2, which is the first version to support SRI hashes, so I think anything goes now (but didn't in 20.03, which had minver 2.0)
<gchristensen>
demostanis[m]: looks like you were kicked out by Matrix: 2020-11-30 09:00:06 <-- demostanis[m] (demostanis@gateway/shell/matrix.org/x-odgcuohgerouzmsg) has quit (Quit: Idle for 30+ days)
<demostanis[m]>
Oh my bad, I should be more active.
Lord_of_Life has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #nixos
Lord_of_Life has joined #nixos
Lord_of_Life has quit [Changing host]
aasg has quit [Quit: Bridge terminating on SIGTERM]
<{^_^}>
#3382 (by kevinburke, 6 years ago, open): Provide more assistance for users to find SSL certificates (the "unable to get local issuer certificate" problem)
<dsal>
My stack build fails under a nix-shell.
<dsal>
Anyone have any idea how to make this thing happy? Somewhere below this shell, stack tries to clone a git repo from github and it fails with SSL certificate problem: unable to get local issuer certificate
<tpw_rules>
i'm having trouble creating a patch for some reason. patches = [ ./patch1.patch ./patch2.patch ]; patchFlags = [ "--binary" ]; . patch1 applies fine but patch2 says the file can't be found. but the weird thing is if i say prePatch = ''patch -p1 --binary <${./patch2.patch}'' the patch applies fine
<tpw_rules>
i used git to make the patch
pmy has quit [Ping timeout: 272 seconds]
<tpw_rules>
okay, if i add -p1 to patchFlags it works, but i thought that was the default?
<tpw_rules>
(and then how did patch1 work?)
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JIUhk
<simpson>
energizer: Nix can only build incrementally up to the package boundaries which we encode in it using derivations. Make can't reuse partial builds, ccache isn't available, etc.
<energizer>
simpson: did you mean s/Make/Nix there?
<simpson>
No, I mean that if you invoke `make` from within a build, then you won't get to reuse partial builds. Like, pick anything with autotools and C, suppose it takes 5min to build, and you cancel the build at 4min. It will take 5min to build next time.
<nf>
if i run `systemctl --user show-environment`, i see a bunch of variables that are defined in environment.(profileRelative)sessionVariables, but PATH is overriden to contain only ${systemd}/bin. where is that done, and can i have my full PATH in there *before* my user services are started?
<energizer>
i see
<gchristensen>
zimbatm: did you get terraform 0.13 working properly?
<boogiewoogie[m]>
hey, I'm trying to package my own kernel module. I've finally got it to build fine, but it doesn't get loaded on boot. this is where I'm at: https://hastebin.com/dabujagase (package) https://hastebin.com/sucokotori (module). what am I missing?
<thornAvery>
im trying to write a derivation where i preprocess a file as part of the configurePhase (which i override), however its telling me it cannot open the file, even though it exists at the path its telling me, is there something special I have to do? the file is in a subdirectory of the dirvations src attribute
<jlamothe>
So, I'm working on building a NixOS package (derivation?) Is this a good place to ask questions?
astylian has quit [Remote host closed the connection]
<iqubic>
Sure.
<iqubic>
Ask questions here.
seku has quit [Quit: Connection closed]
<jlamothe>
Okay... So I've figured out mkDerivation (mostly), but I can't figure out how to get it to place links to the compiled binaries in the user's profile.
<jlamothe>
They just end up in $out/bin
<jlamothe>
...or linked to by result/bin
<jlamothe>
I'm finding the documentation a little hard to follow.
<simpson>
jlamothe: It's not up to you to do that. The user can choose to make links in their profile. All you have to do as the package author is copy the built binaries into $out/bin/.
<jlamothe>
...but it happens when I do a nix-env -i somepackage
<jlamothe>
Am I missing something?
<jlamothe>
Is it more than just a derivation?
<iqubic>
I'd like to get the haskell lsp working with emacs and nix. How can I go about doing that?
<thornAvery>
a derivation is telling nix how to build a package and place it in the store, after thats happened its up to the user to say they want that package in their profile, the same way you'd add any package from nixpkgs
<jlamothe>
The only way I know how to do that is with 'nix-env -i'. Can I just call it on a local .nix file?
orivej has joined #nixos
ali1234 has quit [Remote host closed the connection]
<ben_>
To check my own understanding, nix-env just creates symbolic links to paths in the store and puts those links in the user's path?
<thornAvery>
iirc you can go (callPackage ./path/to/nix/file {}) or something to that effect?
CMCDragonkai2 has joined #nixos
<jlamothe>
ben_: That's my understanding, yes.
ali1234 has joined #nixos
<jlamothe>
Is callPackage part of builtins or stdenv?
<thornAvery>
uhh not 100% sure, i use flakes so I create an overlay with my derivation in it, then import that to regular nixpkgs
<thornAvery>
as a side question, im using flakes for a derivation that needs to grab julia packages from github. julia has a reproducible pkg manager so i dont mind allowing the impurity in the derivation, but i cant figure out how to allow that, any ideas?
<jlamothe>
I'm still a little fuzzy on overlays, but I think I'm starting to get it.
<energizer>
thornAvery: are you building julia?
<thornAvery>
energizer: im trying to precompile a sysimage for my julia program, and part of that involves running Pkg.instantiate to download the packages defined in my Project.toml
__monty__ has quit [Quit: leaving]
<energizer>
thornAvery: someone should write a poetry2nix equivalent for julia
tsrt^ has joined #nixos
<thornAvery>
that would've helped a lot
<thornAvery>
do you know a way to tell a flake im happy for it to make a network call?
<thornAvery>
i dont know any other way to do this build step otherwise
<o1lo01ol1o>
if someone happened to have erased their configuration.nix, where would you tell them to look to copy-paste something that might be workable. asking for a friend.
<energizer>
o1lo01ol1o: nixos-generate-config
<chr0ma[m]>
Anyone having issues with the links to expressions from the package search page?
cr4y1 has quit [Read error: Connection reset by peer]
cr4y1_ has joined #nixos
neeasade has joined #nixos
sciamp has quit [Ping timeout: 260 seconds]
Moonspell has quit [Ping timeout: 240 seconds]
<neeasade>
Does nixpkgs have nvidia physX anywhere? I have a steam game that won't succumb to steam-run and I'm trying patching the rpath rn but don't see a pachage for PhysX.so
zopieux has quit [Ping timeout: 240 seconds]
Moonspell has joined #nixos
stiell has quit [Ping timeout: 240 seconds]
cirno-999 has quit [Ping timeout: 240 seconds]
zopieux has joined #nixos
cirno-999 has joined #nixos
stiell has joined #nixos
werner291 has quit [Quit: werner291]
<{^_^}>
[mobile-nixos-website] @samueldr pushed to master « Add November 2020 round-up »: https://git.io/JITOI
g-w1 has joined #nixos
<wucke13>
Is it normal for autoPatchelf to sometimes take minutes on a single .so file?
<infinisil>
,locate PhysX.so
neeasade has quit []
<{^_^}>
Couldn't find in any packages
<infinisil>
I guess not
jonatanb_ has joined #nixos
g-w1 has left #nixos ["WeeChat 3.1-dev"]
<energizer>
,locate doesn't find unfree things tho does it