klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
<zeta_0>
iqubic: i use the packages in my home.nix for my personal projects, but when i have to do a project for work or something, i'll use default.nix, is this an ok workflow?
<zeta_0>
default.nix in a nix-shell that is
<iqubic>
Yes. That's totally fine.
o1lo01ol1o has joined #nixos
<zeta_0>
iqubic: if i set the $JAVA_HOME environment variable in home.nix and install java in nix-shell using default.nix, will the $JAVA_HOME environment variable be detected in nix-shell?
<zeta_0>
iqubic: or will i have to set $JAVA_HOME environment variable in default.nix instead?
<zeta_0>
i'm guessing nix-shell does detect environment variables set in home.nix, but i am not sure
<{^_^}>
[nixpkgs] @andir opened pull request #79299 → buildRustCrate: remap the current build dir to /nix-build for (more) reproducible builds → https://git.io/JvZO8
ddellacosta has joined #nixos
shabius_ has joined #nixos
<iqubic>
I too have no idea whether or not that is the case.
Synthetica has quit [Quit: Connection closed for inactivity]
Seto_Kaiba has joined #nixos
lsix has quit [Quit: WeeChat 2.6]
shafox_ has joined #nixos
Kritnich9 has joined #nixos
erictapen has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
aminechikhaoui5 has joined #nixos
erasmas has quit [Quit: leaving]
notgne3 has joined #nixos
inferencerules has joined #nixos
zarel has joined #nixos
ZeDestructor_ has joined #nixos
puckipedia has joined #nixos
pareidolia_ has joined #nixos
MightyJoe has joined #nixos
andersk_ has joined #nixos
ambroiseur has joined #nixos
kwork_ has joined #nixos
dooms_ has joined #nixos
chagra_ has joined #nixos
zaeph1 has joined #nixos
mutantmell has joined #nixos
zemm_ has joined #nixos
<zeta_0>
what is the terminal command to see the path that i need to set $JAVA_HOME to in home.nix?
cr4y1 has quit [Ping timeout: 240 seconds]
Hunterkll has quit [Read error: Connection reset by peer]
Kritnich has quit [Quit: Ping timeout (120 seconds)]
shafox has quit [Remote host closed the connection]
aminechikhaoui has quit [Quit: Ping timeout (120 seconds)]
andersk has quit [Remote host closed the connection]
inferencerules_ has quit [Quit: ZNC 1.7.5 - https://znc.in]
johs has quit [Read error: Connection reset by peer]
lirzhv has quit [Read error: Connection reset by peer]
nh2 has quit [Read error: Connection reset by peer]
techtangents has quit [Read error: Connection reset by peer]
tazjin has quit [Read error: Connection reset by peer]
englishm has quit [Read error: Connection reset by peer]
tokudan has quit [Quit: Dunno.]
infinisil has quit [Remote host closed the connection]
CustosLimen has quit [Read error: Connection reset by peer]
hamishmack has quit [Read error: Connection reset by peer]
d1rewolf has quit [Read error: Connection reset by peer]
feepo has quit [Read error: Connection reset by peer]
hoek has quit [Read error: Connection reset by peer]
coot has quit [Read error: Connection reset by peer]
noonien has quit [Read error: Connection reset by peer]
aw has joined #nixos
savanni has joined #nixos
c00w has joined #nixos
joedevivo has joined #nixos
marcinkuzminski has joined #nixos
johanot has joined #nixos
oharvey has joined #nixos
techtangents has joined #nixos
nixy has joined #nixos
lirzhv has joined #nixos
pkral has joined #nixos
coot has joined #nixos
michaelpj has joined #nixos
tazjin has joined #nixos
jchw has joined #nixos
orcus has joined #nixos
d1rewolf has joined #nixos
infinisil has joined #nixos
pmade has joined #nixos
noonien has joined #nixos
feepo has joined #nixos
bennofs has quit [Remote host closed the connection]
CustosLimen has joined #nixos
englishm has joined #nixos
mumuluxi has joined #nixos
fadenb has quit [Ping timeout: 272 seconds]
gausby_ has joined #nixos
aria has joined #nixos
sevanspowell has joined #nixos
tokudan has joined #nixos
hoek has joined #nixos
nand0p_ has joined #nixos
johs has joined #nixos
hamishmack has joined #nixos
qyliss has joined #nixos
shabius_ has quit [Ping timeout: 272 seconds]
devalot has quit [Ping timeout: 272 seconds]
pmade is now known as devalot
nh2 has joined #nixos
genesis has quit [Ping timeout: 272 seconds]
Shell has quit [Ping timeout: 272 seconds]
l_inus[m] has quit [Ping timeout: 272 seconds]
dckc has quit [Ping timeout: 272 seconds]
Fulgen has quit [Ping timeout: 272 seconds]
layus[m] has quit [Ping timeout: 272 seconds]
mingc has quit [Remote host closed the connection]
Shell has joined #nixos
Gohla has quit [Ping timeout: 240 seconds]
ashkitten has quit [Remote host closed the connection]
crusader1 has quit [Remote host closed the connection]
JohnAZoidberg has quit [Remote host closed the connection]
lovesegfault has quit [Remote host closed the connection]
torque has quit [Remote host closed the connection]
stzsch has quit [Ping timeout: 272 seconds]
scoates has quit [Ping timeout: 272 seconds]
megfault has quit [Ping timeout: 272 seconds]
haruko[m] has quit [Ping timeout: 272 seconds]
NinjaTrappeur has quit [Ping timeout: 272 seconds]
thonkpod has quit [Remote host closed the connection]
bennofs has joined #nixos
misuzu has quit [Remote host closed the connection]
JohnAZoidberg has joined #nixos
ashkitten has joined #nixos
torque has joined #nixos
lovesegfault has joined #nixos
azazel has joined #nixos
wavirc22 has quit [Ping timeout: 268 seconds]
scoates has joined #nixos
crusader1 has joined #nixos
noudle has quit []
thonkpod has joined #nixos
talyz has quit [Ping timeout: 272 seconds]
hexa- has quit [Ping timeout: 272 seconds]
mingc has joined #nixos
<andi->
lovesegfault: what failed? I am almost at the point where I am throwing out all Intel hardware... The systems are just sluggish and no fun to use for anything interactive.
fadenb has joined #nixos
wavirc22 has joined #nixos
Fulgen has joined #nixos
megfault has joined #nixos
genesis has joined #nixos
Gohla has joined #nixos
greymalkin has joined #nixos
talyz has joined #nixos
dckc has joined #nixos
NinjaTrappeur has joined #nixos
stzsch has joined #nixos
hexa- has joined #nixos
v88m has joined #nixos
misuzu has joined #nixos
fenedor has quit [Read error: Connection reset by peer]
<infinisil>
matt`: See https://github.com/NixOS/nixpkgs/pull/55786, with `perl.withPackages` this shouldn't be necessary anymore, so I suggest you to change whatever does that to use withPackages instead
<{^_^}>
#55786 (by cleverca22, 50 weeks ago, closed): improve perl shebang lines by switching to `use lib ...;`
<matt`>
infinisil: ah! that could be it was using that
<matt`>
let me try
<matt`>
thanks for pointing that out!
zeta_0 has joined #nixos
h0m1 has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos
butterthebuddha has joined #nixos
bvdw has quit [Remote host closed the connection]
bvdw has joined #nixos
<butterthebuddha>
I for some reason have clang-7.1.0 in my PATH even though I haven't installed it explicitly
<butterthebuddha>
Can I figure out why it's being included in my PATH?
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gxt has joined #nixos
<Arahael>
I've cloned the nix packages in ~/src/nixpkg, how do I add this as a "channel"? (What I want to do, is to be able to edit, say, pkgs/applications/misc/gramps/default.nix, and then be able to upgrade my gramps install to it - unless someone can suggest a better method?
<Arahael>
)
Acilim has joined #nixos
shibboleth has quit [Quit: shibboleth]
romanofski has quit [Ping timeout: 268 seconds]
<__monty__>
Arahael: I'd suggest an overlay just for gramps.
<__monty__>
If you track master closely you're gonna have a ton of cache misses.
<__monty__>
I have a couple overlays like this, look like `self: super: { pkg = super.callPackages ~/src/nixpkgs/pkgs/applications/whatever/default.nix {}; }`
<Arahael>
__monty__: I'm going to have to play with those, thanks. I notice there is no nix pill that seems to describe overlays.
<__monty__>
,overlays Arahael
<{^_^}>
__monty__: Did you mean overlay?
<{^_^}>
Arahael: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<{^_^}>
[nixpkgs] @ehmry pushed commit from @anton-dessiatov to master « tilt: 0.10.13 -> 0.11.3 »: https://git.io/JvZBm
lovesegfault has joined #nixos
<Arahael>
__monty__: I am really not confident in nix at all, even though I happen to run nixos. What's an overlay? Does it apply to the entire nixpkg's, or just to a single 'default.nix'? How do I specify that *this* overlay is used for *that* package? How do I instantiate it - without modifying all-packages.nix?
Izorkin has quit [Ping timeout: 240 seconds]
<__monty__>
Create a directory `~/.config/nixpkgs/overlays`.
<Arahael>
Ah, that helps! It's not in the manual. :(
<__monty__>
Put a file in there, name doesn't matter but I usually go with "mypkg.nix," with the contents: `self: super: { mypkg = super.callPackage "~/src/nixpkgs/pkgs/.../mypkg/default.nix" {}; }`
<Arahael>
I supose that I would then use the overlay to provide an entirely alternative gramps.nix ?
<{^_^}>
[nixpkgs] @FRidh pushed 1000 commits to python-unstable: https://git.io/JvZBs
<Arahael>
Beautiful - that makes sense to me now. :)
<__monty__>
The overlay applies to the entire package set but only the attributes you change will change the package set.
bacs has joined #nixos
<{^_^}>
[nixpkgs] @domenkozar pushed to master « ansible-lint: it builds »: https://git.io/JvZBG
domogled has quit [Quit: domogled]
<__monty__>
You can change multiple attributes in that one overlay or create more files in nixpkgs/overlays.
<Arahael>
Ah, and that path is indeed in the manual, somehow didn't see it.
<__monty__>
Oh, one caveat.
<{^_^}>
[nixpkgs] @FRidh pushed commit from @bgamari to python-unstable « python3Packages.sphinx: 2.2.2 -> 2.3.1 »: https://git.io/JvZBZ
<__monty__>
These overlays are used by things like home-manager. But not the system configuration.
<Arahael>
Interesting - I suppose that kind of makes sense, because the system configuration must be referring to the all-packages directly?
<__monty__>
I think you have to explicitly list overlays if you want them to apply to the nixpkgs your system configuration uses. Something like `nixpkgs.overlays = [ overlay1 overlay2 ];`
<Arahael>
Ok, that makes sense. So whilst I'm developing this overlay, I'd be better off either doing it in home-manager, or by using nix-env and nix-shell?
chagra has quit [Ping timeout: 268 seconds]
bahamas has joined #nixos
<Arahael>
So, eg, I'd set up that overlay, and then when I do a 'nix-env -i gramps', it'd load the overlays, see that i've got an overlay that overrides the gramps package, and then installs the one specified by that overlay instead?
chagra has joined #nixos
<__monty__>
The overlay'd apply for nix-shell as well.
<bahamas>
is anyone using pycharm with nix? I created a result dir with nix-build, but pycharm can't see the libraries installed in site-packages
<Arahael>
__monty__: Thanks for that, I think it hsould work (though will play with it for a bit). Why do we use overlays though, for this? I mean, I originally expected I would be able to just either 'cd' to that directory and then do a 'nix-build', but that didn't work (because it needs callPackage)
<Arahael>
__monty__: And I'm also wondering - what if I wanted to develop an application that would use nix itself as it's primary build system - eg, some random package on github that has a default.nix...
<__monty__>
Arahael: You can simply nix-build from the nixpkgs repo's top-level.
Izorkin has joined #nixos
chagra has quit [Ping timeout: 260 seconds]
<__monty__>
I thought what you wanted was to *install* a changed version of a package.
<__monty__>
Overlays are a way to extend or change an existing package set.
<Arahael>
__monty__: Well, I'm considering *modifying* graphs itself, and then I want to install *that*.
zupo has joined #nixos
<Arahael>
__monty__: I thought this was (effectively) the same thing, but it seems we have a distinction here. :)
chagra has joined #nixos
<__monty__>
Yeah, if you want to install it the most convenient way is an overlay. That way you can simply refer to the attribute and more importantly *other* packages in the package set that depend on it will find your changed version as well.
<Arahael>
So first, I was hoping to get into a nix-shell, then I noticed that there is nothing in the gramps repo that has nix files... Which makes sense, they don't use nix. So next place I looked was nixpkg's itself, but I couldn't easily get into nix-shell or nix-build (not realising that I had to do it at the top level)
<__monty__>
If there's nothing depending on it you could just literally add `(callPackage path/to/default.nix {})` where you'd normally specify the attribute.
<Arahael>
Yeah, it's an application - nothing depends on it.
<__monty__>
An overlay is still a nicer more general way to achieve what you want.
<Arahael>
And indeed, that's literally how it's done in the all-package.snix.
<Arahael>
(typos aside)
<__monty__>
You might want to change something that *is* a dependency one day.
<Arahael>
__monty__: Fair point. Will definitely play with it, my first priority is to get a working nix-shell that I can use for hacking on gramps, with additional dependencies.
<Arahael>
__monty__: Eg, one thing that gramps consistently complains about is missing GTK translations.
FRidh2 has quit [Quit: Konversation terminated!]
<__monty__>
Arahael: From nixpkgs top-level I thing you should be able to just do `nix-shell . -A gramps`.
<{^_^}>
[nixpkgs] @eonpatapon opened pull request #79325 → safe: init at 1.5.1 → https://git.io/JvZB5
<Arahael>
error: value is a function while a list was expected, at /home/arahael/src/nixpkgs/pkgs/top-level/stage.nix:243:8
<__monty__>
Arahael: Are you running from `src/nixpgks`?
<Arahael>
Yes.
<Arahael>
Though probably a fairly old one.
<Arahael>
Sept 2019, probably fairly new, still.
<__monty__>
Hmm, it works for me.
<Arahael>
Oh, doh... That line there implicates my overlay, which I just added.
<Arahael>
The full contents of the overlay is: self: super: { mypkg = super.callPackage "~/src/nixpkgs/pkgs/applications/misc/gramps/default.nix" {}; }
<Arahael>
(It's copying a HUGE pile of paths at the moment)
o1lo01ol1o has quit [Remote host closed the connection]
<__monty__>
Yeah it'll fetch all the dependencies at the versions of your nixpkgs checkout.
<Arahael>
I suppose to avoid that, I could just not use the nixpkg's checkout and do `nix-shell -A gramps` instead? That'd still use the overlays, I believe?
<{^_^}>
#67465 (by matthewbauer, 23 weeks ago, open): Unable to bind mount on certain hard drives
<EliotB>
From my perspective, the bug is quite obscure, so I was wondering if anyone could give me a hand to troubleshoot it
<EliotB>
(also, let me know if I'm not in the proper place for this kind of questions)
infty has joined #nixos
<simpson>
Anything interesting in dmesg?
erictapen has quit [Ping timeout: 268 seconds]
<EliotB>
simpson: nothing in particular as far as i can tell (running `sudo PATH="$PATH" NIX_PATH="$NIX_PATH" `which nixos-install` --root /mnt` doesn't generate any dmesg output)
<simpson>
Oh well.
<EliotB>
Maybe there is a way to have additional output from `nixos-install`? I've tried running with `--option sandbox false`, to no avail, and `--show-trace` don't show anything new
<Cadey>
is there a way to only download the direct dependencies of the _binaries_ though? I don't really want to ship an entire compiler stack with a binary application
hyper_ch2 has quit [Remote host closed the connection]
lovesegfault has joined #nixos
<Cadey>
(i have slow internet)
<gchristensen>
Cadey: that sounds like a bug in the build
<Cadey>
the weird part is that all of the compiler stack and everything can just be `nix-collect-garbage`'d away
<gchristensen>
like you're not having to build the binary, right? you're able to fetch it pre-built -- and you're saying you're getting the whole toolchain with it?
<Cadey>
yes
<simpson>
"It’s important to realize, however, that most system libraries in Nix are built as shared libraries only, i.e. there is just no static library available that Cabal could link!"
<gchristensen>
how are you getting it?
<Cadey>
$ nix-env -i niv
<gchristensen>
simpson: I'm pretty certain this is a bug in the packaging
<Cadey>
that creates a 300 MB download and 3 GB of cruft in my local nix store
<simpson>
gchristensen: Sure. I'm not sure whose packaging is holding the bug yet, though. I'm not yet sure if there *is* a bug or if this is an expected Haskell behavior.
<gchristensen>
ah
<Cadey>
nearly all of which can be just pruned
<gchristensen>
hmm maybe it is not a bug. I'm not familiar enough with Haskell to know
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvZaa
<aanderse>
m1cr0m4n: are you doing ok for time? I want to mention again that arianvp
<aanderse>
has offered to help if needed
<{^_^}>
[nixpkgs] @lo1tuma opened pull request #79351 → Aws sam cli 0.41.0 → https://git.io/JvZaK
<m1cr0m4n>
aanderse: I will be able to do it this weekend. If I get seriously stuck, I'll give arianvp a buzz. I really want to take this chance to learn how to write the tests. I'm going through the process of actually having it spin up a DNS server so that it can verify DNS-01 challenge. I don't see a simpler way to test it properly
Maxdamantus has quit [Ping timeout: 268 seconds]
butterthebuddha has joined #nixos
<aanderse>
m1cr0m4n: ok, great. thank you!
Maxdamantus has joined #nixos
<m1cr0m4n>
aanderse: Rest assured I want this in 20.03 as much as you do. I won't delay on asking for help just for the sake of doing it myself. :)
<aanderse>
m1cr0m4n: great, i'm glad to hear
sbetrium has joined #nixos
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Aleksejs>
Hi, I've installed direnv and tried quick demo from here https://github.com/allenap/direnv but nothing works. I can see that RC file is found when I type direnv status, but nothing else
<{^_^}>
[nixpkgs] @tfc opened pull request #79352 → nixosTests.chromium: Port to Python → https://git.io/JvZVe
orivej has quit [Ping timeout: 268 seconds]
butterthebuddha has joined #nixos
sbetrium has quit [Quit: sbetrium]
zupo has quit [Ping timeout: 272 seconds]
<simukis_>
how can I find a list of attributes made overridable?
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
zupo has joined #nixos
thc202 has quit [Ping timeout: 260 seconds]
thc202 has joined #nixos
is_null has joined #nixos
ddellacosta has joined #nixos
<simpson>
Aleksejs: Did you allow?
<simpson>
Also, did you run the shell hook?
<infinisil>
> lib.functionArgs pkgs.hello
<{^_^}>
'functionArgs' requires a function, at /var/lib/nixbot/nixpkgs/master/repo/lib/trivial.nix:328:42
<Aleksejs>
simpson: it worked now. It failed before because I added a hook NOT at the end of my .bashrc. I don't know why but I fixed it by moving hook at the end
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
butterthebuddha has joined #nixos
domogled1 has joined #nixos
<infinisil>
evanjs: Context?
<evanjs>
infinisil: Yeah, one sec
werner291 has joined #nixos
domogled has quit [Ping timeout: 260 seconds]
<infinisil>
evanjs: Seems like the kind of thing rfcs#42 is for, which recommends to not have any distinction between preset values or extra ones (or structured/unstructured ones)
<evanjs>
simply building that seems to reproduce it here
<infinisil>
Hm yeah can reproduce
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<davidtwco>
I just updated my pinned nixpkgs commit and now nginx cannot access `/run/keys` from nixops (perm denied) - appears like #56255 is relevant - is there a known solution to this?
<davidtwco>
(that might not be the right PR, it was a while ago, but it modified the 20.03 changelog)
<evanjs>
infinisil: I've been doing stuff wrong with (at least busybox's config parser) all week so I'm still unsure if it's just me :D
chloekek has quit [Quit: WeeChat 2.6]
<davidtwco>
(my pinned commit was four days earlier than that one, so probably was that)
<infinisil>
evanjs: With https://github.com/NixOS/nixpkgs/pull/76861 reverted I get error: The option value `settings.CONFIG_INITRAMFS_SOURCE' in `structuredExtraConfig' is not of type `submodule'.
<evanjs>
infinisil: ah I was seeing similar things when trying to set other options. Can't remember, do we need to strip CONFIG_ with structuredExtraConfig values, as well?
Tucky has quit [Quit: WeeChat 2.7]
<evanjs>
just got it past the other problem I was having by specifying INITRAMFS_SOURCE in extraConfig rather than CONFIG_INITRAMFS_SOURCE
<infinisil>
evanjs: The problem seems to be that you can't use strings directly
<infinisil>
structuredExtraConfig seems to be for those y/n/n things
<infinisil>
Or freeform apparently
<evanjs>
infinisil: okay so likely what I saw with e.g. VBOXGUEST where it had like optional and tristate
<evanjs>
vs just "y" or "n"
orivej has joined #nixos
<infinisil>
Yeah so you'll have to specify those with the yes, no, module or freeform functions from lib/kernel.nix
opthomasprime has joined #nixos
<hodapp>
raaaawr.... I can enable gstreamer in OpenCV, but then buildInputs has "lib.optionals enableGStreamer (with gst_all_1; [ gstreamer gst-plugins-base ])" and I need gst-plugins-bad & gst-plugins-good too
<infinisil>
Hm, I'm wondering now whether this confusing behavior of #76861 can be mitigated
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
drakonis has joined #nixos
<evanjs>
welp. now to figure out why it's barfing with the initrd I passed in :P
<nixlanguagestuff>
If I have file a.nix with `{...}: {info = { a = 1; };}` in it how can I access the a attribute? If I had a b.nix like `{...}: {info = { b = 2; };}`, could I then merge both in c.nix: {...}: let a = ./import a.nix; b = ./import b.nix; in {info = a.info // b.info;}
esemds is now known as w3emperor
<nixlanguagestuff>
in the repl importing a.nix gives me `«lambda @ /tmp/simple.nix:1:1»` and I don't know how to do anything with that. I thought callPackage is what I wanted but that gives error "value is a function while a set was expected".
<nixlanguagestuff>
Zooming out: I'm trying to accomplish splitting my home.nix file into core.nix, personal.nix, and work.nix. I'd like to be able to merge together core.nix and work.nix for example in home.nix's program attribute by importing core.nix and work.nix that both have a programs attribute inside.
nuncanada has joined #nixos
<cransom>
you have a lambda because you didn't pass any arguments (or an empty attribute set) to your import.
<infinisil>
nixlanguagestuff: That's already supported by the module system by default
<infinisil>
nixlanguagestuff: You can simply do `imports = [ a.nix b.nix ]` in your main home.nix file
<infinisil>
And it will call and merge everything as if those other files were additional home.nix files
kcalvinalvin has quit [Ping timeout: 265 seconds]
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
scoates has left #nixos ["WeeChat 2.5"]
kcalvinalvin has joined #nixos
Jackneill has quit [Remote host closed the connection]
<nixlanguagestuff>
infinisil: Huh, interesting.
<nixlanguagestuff>
cransom: If a.nix specifies empty input with `{}: # rest of nix file` what argument does it expect for me to be able to access values?
<evanjs>
.... wow. `extraConfig = ''\n INITRAMFS_SOURCE "${self.initrd}/initrd"''` was the issue :D
<evanjs>
been building for ~10+ mins now so I think that was my final issue for now. Fingers crossed
<clever>
nixlanguagestuff: the `{}` says that it accepts a set, that must have exectly nothing in it
<clever>
nixlanguagestuff: so you want `import ./coresimple.nix {}`
<cransom>
nixlanguagestuff: clever has the right/more appropriate approach, but `(import ./coresimple.nix {}).corePrograms)` should fix the function versus set
<evanjs>
Current "problem": get a static busybox + mini gentoo system image from coworker into nix form for our CI that's running on NixOS :P
waleee-cl has joined #nixos
<clever>
evanjs: i find that INITRAMFS_SOURCE is a pain to deal within, within nix, because you have to rebuild the entire kernel every time you change something
<clever>
evanjs: i implemented proper initrd support in my firmware, just to avoid using it
<nixlanguagestuff>
Cool, so that means the approach suggested by infinisil where importing merges attributes works for me. If I wanted to explicitly name things in let variables though I could make my example work with what clever suggested aka `import ./coresimple.nix {}`. Thanks all.
judson has joined #nixos
<nixlanguagestuff>
thanks for the "how to make it work" cransom also, it's useful for understanding
<evanjs>
clever: I was trying to do that with your example but couldn't get the example working with a basic x86 host on qemu lol. probably just doing something dumb wrong
gagbo has quit [Quit: I'm out !]
<{^_^}>
[nixpkgs] @sorki opened pull request #79368 → nixos/lib/make-ext4-fs: fall back to resize2fs -M if exact resize fails → https://git.io/JvZPu
<clever>
evanjs: with qemu, you can just use -kernel and -initrd to load both
<thoughtpolice>
flokli: If you end up submitting a PR etc for Bluespec, can you please CC me? I have some things to test myself and would like to help maintain it, I'm testing your patches now actually.
<flokli>
thoughtpolice: haha
<clever>
evanjs: what happens if you boot without -nographic?
<thoughtpolice>
flokli: A lot of people swarmed on the repo once it got released :P
<thoughtpolice>
Happy they finally did this.
<flokli>
thoughtpolice: Yes, I will CC you. But I fear this is still a loong time away, given we need such an old GHC
<flokli>
I hope these things get cleaned up and it somewhat works reliably, then happy to PR it to nixpkgs
<noonien>
hello
<clever>
evanjs: you may also want to look at my kexec test stuff too
<noonien>
can i not use /usr/bin/env in scripts that i'm using from a derivation?
<clever>
noonien: /usr/bin/env is missing in the nix sandbox
<{^_^}>
B-Lang-org/bsc#18 (by ProfFan, 13 hours ago, open): Add missing returns to prevent GCC from optimizing the functions out
<flokli>
I tried with an older GHC and got a bit further, but then had to sleep and work :D
<flokli>
Might give it another go later
<thoughtpolice>
Oh, I pulled that patch, yeah. I mean for now we could vendor it, at least, provided things are working
<thoughtpolice>
though I imagine they'll integrate all that soon enough
<flokli>
they were quite receptive to the other PRs
<flokli>
I might just push on top of that `bluespec-bsc` branch and see how far I get
<flokli>
I'm not very keen on vendoring a custom GHC just for bsv. I did import an older nixpkgs and picked it from there, but that's cleanly not something for nixpkgs either :-D
<flokli>
s/bsv/bsc/
<thoughtpolice>
Wait, do you mean GHC or GCC? It's GCC that was causing unbounded memory usage, wasn't it
<thoughtpolice>
Like I said, GHC seems to be the default and work fine unless my build is about to fail, I guess?
<flokli>
I didn't check yet.
<thoughtpolice>
(I'm building on top of a few days old branch so it's possible my build hasn't exploded yet)
<{^_^}>
[hydra] @grahamc opened pull request #709 → sql: Generate models from postgresql → https://git.io/JvZXE
lovesegfault has joined #nixos
<thoughtpolice>
Right now things seem to be going, at least
<flokli>
I'll update the branch, add all outstanding PRs, and see how far I'll go
alex` has joined #nixos
cr4y1 has joined #nixos
alex` is now known as Guest73131
<thoughtpolice>
Ugh, all the trappings of a traditional proprietary codebase.
<flokli>
yes :-)
<thoughtpolice>
Not vendoring tcl/ictl would be a good start
<thoughtpolice>
And yices/stp. Or at least sharing the expressions...
<flokli>
for that to happen, we need to tell the build system to allow using something else
<thoughtpolice>
Anyway my build just blew up so I'll look at it later, do CC me
<flokli>
and I'm not sure if that's worth if they intend to move to stack
<flokli>
also not sure if there are some "custom improvements" hidden somewhere deep inside these libraries ;-)
<thoughtpolice>
Have they said publicly what their plans around that are? It really just comes down to how receptive they are to merging changes around this, or if they have plans
<flokli>
I have no idea.
<flokli>
thoughtpolice: I just assume doing these larger style refactors would need some agreement from upstream
<thoughtpolice>
Personally I'm very interested to see Bluespec in Nixpkgs which means I'm willing to accept a significant amount of expression complexity and work upstream to any extent possible. Like if they don't have plans it would be easy to just start fresh and commit very new and clean stuff for stack/cabal usage. Might be worth filing an issue about
<thoughtpolice>
Honestly if they did anything I'd say they should use Shake :D
<ornxka>
has anyone ever build an android apk with nix packaging tools
zupo has joined #nixos
<carter>
Hello ;)
noudle has joined #nixos
<{^_^}>
[nixpkgs] @basvandijk opened pull request #79373 → libuv: 1.32.0 -> 1.34.2 (cherry-pick on release-19.09) → https://git.io/JvZ1U
<hodapp>
any way to easily modify buildInputs short of just modifying the derivation in nixpkgs directly?
<nixlanguagestuff>
import is not merging my override of `programs.git.enable = false` and I'm not sure why. Home.nix: https://pastebin.com/U94CT7Qb file I import called core.nix: https://pastebin.com/6pR6PP8Q infinisilI believe this is what you were recommending.
<evanjs>
clever: yeesh, there we go. had to make some changes to stuff. hangs at "Booting the kernel", like I was initially seeing yesterday
orivej has quit [Ping timeout: 268 seconds]
<clever>
evanjs: and now we can throw my rpi debug knowledge into the mix!
<clever>
evanjs: if you follow those directions, you can attach gdb to qemu, and debug whatever is running on the cpu
<clever>
evanjs: then, run `file /path/to/vmlinux` in gdb, to load the symbols, and you can get a backtrace out of things
dashkal has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
kleisli has quit [Ping timeout: 268 seconds]
<srk>
,overlay hodapp
<{^_^}>
hodapp: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<srk>
hodapp: in combination with overrideAttrs (old: buildInputs = ..)
<srk>
more like overrideAttrs (old: { buildInputs = ...; })
<hodapp>
srk: thanks, giving overrideAttrs a try... not sure yet if I want an overlay
<nixlanguagestuff>
Minimal reproduction. Why doesn't my import of coresimple into coresimple2 add git to the programs attribute in nix repl? https://pastebin.com/8uYPwi5A
LysergicDreams has joined #nixos
karetsu has quit [Quit: WeeChat 2.6]
zupo has quit [Ping timeout: 265 seconds]
nikola_i has joined #nixos
<srk>
nixlanguagestuff: I think that NixOSes config = {} merging is not done automatically
zupo has joined #nixos
<nikola_i>
is it possible to install just one package from 'unstable' using 'nix-env' without using 'nixos-rebuild
<nikola_i>
hi, anyone tried to install an unstable package without using nixos-rebuild?
<nikola_i>
just using nix-env
<evanjs>
nikola_i: you can do that pretty easily with the -f flag
<clever>
nikola_i: nix-env -iA unstable.hello
<evanjs>
or that :P
<clever>
the 1st part, is the name of a channel from nix-channel --list/--add
<evanjs>
-f <TAB> <TAB> should show you all the channels you can use if tab completions are enabled on your system
<evanjs>
clever: yah `file System.map` gives me "/home/evanjs/mini-system/bench/result-1/kernel-modules/System.map": not in executable format: file format not recognized"
<clever>
[root@amd-nixos:~]# nix-build '<nixpkgs/nixos>' -A config.system.build.kernel.dev
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « python37Packages.PyChromecast: 4.1.0 -> 4.1.1 »: https://git.io/JvZMa
<evanjs>
clever: by the way, I'm probably doing something dumb, but what's the easiest way to share the overlayed package set from default.nix -> nixos.nix based on your example?
<evanjs>
I overlayed the package set but passing it to nixos.nix is what I'm stuck on
<clever>
evanjs: jam it into system.build (a nixos option), and then reference it the same way i did
<{^_^}>
[nixpkgs] @FRidh merged pull request #77546 → mycli: Add paramiko as a propagated build input → https://git.io/Jvfw2
<{^_^}>
[nixpkgs] @FRidh pushed commit from @wigust to master « mycli: Add paramiko as a propagated build input »: https://git.io/JvZMK
<evanjs>
clever: oh I did env up getting that bit, just had to fix another thing that made me want to move all package definitions into default.nix :P
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « wpgtk: 6.0.11 -> 6.0.12 »: https://git.io/JvZDG
<{^_^}>
[nixpkgs] @Ma27 opened pull request #79377 → php: add `withPackages` function for additional config on the CLI SAPI → https://git.io/JvZDZ
<evanjs>
was just going to post that haha, here's what I get after running file but before continuing "0x000000000000fff0 in cpu_hw_events and 0x0000000000000000 in ??"
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « libsForQt5.libqglviewer: 2.7.1 -> 2.7.2 »: https://git.io/JvZDR
<evanjs>
clever: signs of linux booting? Like when it says "Booting the kernel"? Because that's what the first set of addresses were. I can wait a bit and see if it does anything, though
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « synthv1: 0.9.11 -> 0.9.12 »: https://git.io/JvZDH
<hodapp>
hrmph. added gst-plugins-* to buildInputs for OpenCV 4.x & Python and it is still complaining about missing elements that aren't a problem with gst-launch by itself
<evanjs>
ah right I remember this point lol a kernel panic
<clever>
evanjs: sounds like you just didnt have the qemu serial port wired up
<clever>
evanjs: so console=ttyS0 null-routed all output
<deni>
I'm trying to use nixops to setup a nginx server. Everything seems straightforward except for one thing...how do I copy an index.html (or whatever files) to /var/www/ or whereever I'm pointing my virtualHost root to?
<evanjs>
mmyup sounds about right
<clever>
deni: you dont
<deni>
clever: I was actually looking in your repo just now (nas-websites)...but couldn't find what I was looking for
sigmundv has quit [Read error: Connection reset by peer]
<clever>
deni: instead, you do `documentRoot = ./foo;` in the nix, and nix will copy foo for you, and put /nix/store/hash-foo into the nginx config file
<deni>
clever: ah yes....that makes total sense! Thank you!
<clever>
deni: the stuff on my nas predates me learning nix, and is still a mess of files spread over 3 machines
sigmundv has joined #nixos
<clever>
deni: and ive mostly just been porting it over without properly fixing it
<deni>
clever: still useful stuff in there
<clever>
yeah
psyanticy has quit [Quit: Connection closed for inactivity]
<hodapp>
bizarre... if I do 'nix-shell -p python3Packages.gst-python gobject-introspection' then I can 'import gi; gi.require_version('Gst', '1.0')' in Python, but if I instead use pkgs.python3.withPackages with the same two packages, I get "ValueError: Namespace Gst not available"
wildtrees has quit [Ping timeout: 268 seconds]
Guest73131 has joined #nixos
<evanjs>
clever: now filling up with messages like "can't open /dev/tty2: No such file or directory". hrm
<clever>
evanjs: weird
<evanjs>
yeah this is after just doing `object = "${pkgs.busybox}/bin/ash"; symlink = "/init";`
<clever>
evanjs: try with a simple #! script, that then runs ash?
gxt has joined #nixos
<aanderse>
ma27: you could definitely get phpfpm to work with it, but then the phpOptions options become awkward to deal with
<hodapp>
is there some fundamental difference between python3Packages.foo and python3.withPackages (ps: [ps.foo]) that I am mangling?
OmnipotentEntity has quit [Ping timeout: 240 seconds]
<clever>
hodapp: withPackages will generate a shell script named python, that adds foo to PYTHONPATH for you
<DanP[m]>
How do I modify my java keystore? It's of course `/nix/store/d4mczka1h0wci1kcgihgg43wx8y7haa0-openjdk-11.0.4-ga/lib/openjdk/lib/security/cacerts (Read-only file system)`
<evanjs>
mmyup hush is gone like I configured. Fiiiiiinally. Now to move onto the systemPackages, I think? Something like that
<hodapp>
trying to run "import gi; gi.require_version('Gst', '1.0')" in python3. if I comment out the python3 line, and uncomment the commented one, it runs.
Guest73131 is now known as alex``
<jtojnar>
hodapp you will also need gst_all_1.gstreamer, which contains the typelib
<jtojnar>
gst-python are just some overrides
<evanjs>
clever++
<{^_^}>
clever's karma got increased to 320
<hodapp>
jtojnar: oh, didn't know that
<jtojnar>
hodapp: I believe propagatedBuildInputs of packages passed to python.withPackages only works for Python packages
<jtojnar>
,locate Gst-1.0.typelib
<{^_^}>
Found in packages: gst_all_1.gstreamer
<jtojnar>
^hodapp
o1lo01ol1o has joined #nixos
<hodapp>
yeah, I don't even know what a typelib is nor why one matters
<{^_^}>
[nixpkgs] @jm2dev opened pull request #79388 → pythonPackages.wordcloud: init at 1.6.0 → https://git.io/JvZ91
<hodapp>
bigger issue I'm trying to solve is why OpenCV's not picking up gst-plugins-bad when I add it to its buildInputs with overrideAttrs
<jtojnar>
hodapp: when you use `from gi.repository import Foo`, pygobject will use gobject-introspection's libgirepository to find Foo-someversion.typelib
<jtojnar>
hodapp how is OpenCV using/looking for gst-plugins.bad?
delroth has joined #nixos
Vikingman has joined #nixos
erictapen has quit [Ping timeout: 260 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hodapp>
jtojnar: I have no idea, but what I'm running into is that pipelines that gst-launch handles fine have missing elements when I try to use them via OpenCV's VideoCapture
<hodapp>
and I looked at its derivation, and in buildInputs it has: lib.optionals enableGStreamer (with gst_all_1; [ gstreamer gst-plugins-base ])
<hodapp>
while I know I am using some things that are present only in gst-plugins-bad
erictapen has joined #nixos
<jtojnar>
hodapp: gstreamer locates the elements in GST_PLUGIN_SYSTEM_PATH_1_0 environment variable
<dashkal>
Where abouts do I look to mess with the power management settings? I specifically want to make it not sleep/hibernate/anything if plugged in and the lid is closed.
ddellacosta has joined #nixos
<{^_^}>
[hydra] @pikajude opened pull request #712 → Add github notifications for evals → https://git.io/JvZHu
<dashkal>
The only thing my searching in the options doc is powerManagement.enable, which is a bit of a blunt instrument.
chloekek has quit [Quit: WeeChat 2.6]
chloekek has joined #nixos
halabala has joined #nixos
<sondr3>
hang on, I have something like that configured once upon a time
<{^_^}>
[nixpkgs] @FRidh opened pull request #79390 → rsyslog: add nixos tests to passthru.tests → https://git.io/JvZHg
nixlanguagestuff has quit [Remote host closed the connection]
<dashkal>
Related, but also a blunt instrument (that thing discusses disabling the feature altogether). I just want the lid to stop being involved. Specifically when plugged in if possible. Currently digging in acpi docs.
<sondr3>
dashkal: look at services.logind.lidSwitchDocked
<sondr3>
and the related logind.* options, it's what I used on my old Macbook to disable the power button
<dashkal>
ooo, now that looks promising
halabala has quit [Client Quit]
<dashkal>
"services.logind.lidSwitchExternalPower" is exactly what I was seeking. Much appreciated
zupo has joined #nixos
<sondr3>
nice :)
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @WilliButz to release-19.09 « grafana: 6.6.0 -> 6.6.1 »: https://git.io/JvZHP
<immae>
Hello there, I have a bit of issues with github-fetched sources : When I "fetchurl" urls like https://api.github.com/repos/mikey179/vfsStream/zipball/d5fec95f541d4d71c4823bb5e30cf9b9e5b96145 or when I fetchFromGitHub (in my example, kanboard/kanboard), the sha256 hash changes from machine to machine. The content in the end is the same, but I guess github generates the archive on-the-fly so the sha becomes
<immae>
invalid later (and somehow nix seems not aware of that). How do you deal with that when you want to have derivations that are robust with respect to that? (I’m on 19.03, in case it’s relevant/fixed in later releases)
<sondr3>
immae: how do you fetch? I've never had that problem using fetchFromGitHub
oida has quit [Ping timeout: 240 seconds]
<immae>
sondr3: I have one example with `fetchFromGitHub { owner = "kanboard"; repo = "kanboard"; rev = "c4152316b14936556edf3bcc4d11f16ba31b8ae7"; sha256 = "1hdr95cpxgdzrzhffs63gdl0g7122ma2zg8bkqwp42p5xphx0xan"; };`
<{^_^}>
[nixpkgs] @FRidh pushed commit from @timokau to master « Revert "rsyslog: 8.1911.0 -> 8.2001.0" »: https://git.io/JvZHD
<{^_^}>
[nixpkgs] @FRidh pushed 0 commits to revert-78824-auto-update/rsyslog: https://git.io/JvZHy
<samueldr>
immae: fetchFromGitHub hashes the contents of the archive once expanded, to ensure that when gihtub changes archive generation it won't break
<dashkal>
Hrm, well, it should have been what I wanted, but no dice. It's still suspending on lid close. More searching.
<immae>
hmm
<samueldr>
immae: while fetchurl would still hash the archive itself
oida has joined #nixos
<immae>
But it didn’t do it there?
<sondr3>
immae: do you have a gist of what you're doing? If that didn't work it'd be a major bug with fetchFromGitHub
<samueldr>
could it come from an older sha256 that is a valid source in one of your store?
<samueldr>
or did you "tofu" on both computers from the same rev?
<samueldr>
if you did "tofu" on both for the same rave, and got different results, I would nix-store --delete that path and retry just in case something weird happened, but that's also a bit unlikely
<dashkal>
Ahh, had to kick systemd-logind.service. Laptop lid switch behaving as I wanted :)
<immae>
samueldr: I built ("monthes ago") on one machine via tofu ,then I copied the derivation on another machine and I built there. The kandboard derviation I’m talking about it there: https://git.immae.eu/?p=perso/Immae/Config/Nix.git;a=blob;f=overlays/kanboard/default.nix;h=81b39fecbbcfaa84a99815c0eae86cbf7a1cefe3;hb=8da1c716967625acd37a5425e2d3537c312cc003
<{^_^}>
[nixpkgs] @Ma27 pushed to master « grafana: add myself as maintainer »: https://git.io/JvZH5
<immae>
(it’s an overlay but I guess it doesn’t make much difference)
<samueldr>
shouldn't really
<evanjs>
sondr3: hey did you get the xmonad stuffs figured out?
<{^_^}>
#71302 (by tokudan, 15 weeks ago, open): rngd: Start early during boot and encrypted swap entropy fix
<immae>
samueldr: not sure I understand
<immae>
FOD?
<sondr3>
,FOD
<sondr3>
damn :(
<samueldr>
fixed-output derivations, those with sha256
<immae>
ah yes, I always change it to 00000 when I want to "tofu", is that what you wondered about?
<samueldr>
nix will use the name + hash of a FOD to look for it in the store, the name is always `source` here
civodul has joined #nixos
drakonis has joined #nixos
<samueldr>
so if you started with fetchFromGitHub { rev = "example1"; sha256 = "1234"; }, then later only update rev fetchFromGitHub { rev = "example2"; sha256 = "1234"; } it will still reuse the initial example1 source in the store
<samueldr>
since nix will find "source-1234" in the store
<samueldr>
that's one way the behaviour you see could be explained
<immae>
I’m aware of that yes, but I cannot garantee that I didn’t make a mistake there indeed (I was still a beginner at that time)
o1lo01ol1o has quit [Remote host closed the connection]
<samueldr>
the other is freak FS corruption that didn't matter for the thing to work
<evanjs>
sondr3: nah you shouldn't need to worry about that. I'm fine even enabling hoogle for xmonad+taffybar on my laptop... but then I have a G751JY with a 980M, so... maybe not the best example
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
o1lo01ol1o has joined #nixos
<immae>
I still have access to the old machine, I’ll test that immediately
<sondr3>
evanjs: lmao, that laptopt looks like a spaceship. I have a fairly beefy processor but Haskell compiles still makes it cry
<evanjs>
Either most of the compilation is already done upstream... or the taffybar cache I have referenced in my cachix config is the reason I never have to wait too long :P
<sondr3>
but cool, good to know
<sondr3>
you mean taffy.cachix.org right, evanjs?
<evanjs>
sondr3: yes. I remember it's in my cachix config but I've forgotten if it's had an impact. I'd assume so :P
<evanjs>
wait taffybar or taffy? they're both ivan's....
<immae>
samueldr: yes, got bitten by it several times but I was either unaware or tired when it happened :)
<immae>
Thanks samueldr sondr3
<sondr3>
mostly samueldr though :)
<evanjs>
sondr3: yeah whatever, looks like I use taffy over here haha. anyway, I've never seen any issues with compilation time. I think the brunt of it is the haskell packages which are cached already, be it either in nixos or taffy
<samueldr>
don't worry, some would assume it stops and you never make that mistake again... but I'm not sure that's a reasonable expectation :D
<sondr3>
evanjs: awesome, I'll probably just outright "copy" your configuration
<immae>
Yes :D
<evanjs>
xmonad articafts should be upstream in nixos. Really all you're going to need to "compile" is your reconfigured stuff AFAIK.
<evanjs>
*artifacts lol
<sondr3>
I guess I was overly worried about it then, cool, cool, cool, thanks a bunch
<evanjs>
yeah I do remember how bad it was on Gentoo and can't say I've felt as bad since moving xmonad/taffy into a more nix-y configuration here. And yeah just let me know if stuff doesn't work :P
<immae>
samueldr: ah however I "think" I got a bug with fetchgit: I have this thing in one of my derivation: https://paste.ee/p/XF1TN the corresponding project evolved in the meantime so it’s expected that the .git folder would be different, and then the hash changed. This time I’m sure I didn’t mess up, but I’m less confident in how I can debug: it’s a gemset generated by bundix (
<immae>
https://git.immae.eu/?p=perso/Immae/Config/Nix.git;a=blob;f=pkgs/webapps/mastodon/gemset.nix;h=ff3c7c765241e46f6213ed77a87db306c665ffde;hb=HEAD both http_parser.rb and posix-spawn have a mismatch in the hash now), that seems to be transformed into a source via the function in pkgs/development/ruby-modules/gem/default.nix
<samueldr>
(couldn't say here :/)(
<immae>
(alright, thanks :) )
Jackneill has joined #nixos
<{^_^}>
[nixpkgs] @clkamp opened pull request #79393 → libxkbcommon: fix build on darwin: patch is already in upstream → https://git.io/JvZ7w
kvda has joined #nixos
kvda has quit [Client Quit]
efriend has joined #nixos
<{^_^}>
[docker] @Infinisil opened pull request #13 → Set `NIX_BUILD_SHELL` to a persistent bash → https://git.io/JvZ7P
chloekek has quit [Ping timeout: 265 seconds]
noudle has quit []
<pbb_>
Hi, can anyone tell me what is the difference between running something in a shellHook and running it in nix-shell0 of the same derivation?
<pbb_>
Because I have a command that is always failing in shellHook, but when I run it manually in then nix-shell it always works
<pbb_>
(a gcc command)
<clever>
pbb_: what is the command and how does it fail?
<pbb_>
impure path `/home/pbb/proj/oeffi/oeffisearch' used in link
<pbb_>
collect2: error: ld returned 1 exit status
<pbb_>
that's the output
Jackneill has quit [Remote host closed the connection]
<clever>
pbb_: what is the command? and why are you building it in shellHook?
<quiet_laika[m]>
im using fprintd to enable my fingerprint scanner under nixos. this works great, and i can log in with only my fingerprint if i want. however, sometimes the reader can be a little finicky, and i want to just enter my password instead. however, my pam settings seem to be such that if i enter my password, the fingerprint is always required as well. how can i configure pam under nix to make the password enough for log in?
<pbb_>
it's for a development environment
<clever>
pbb_: could you pre-build it in another derivation, and then just put it in PATH?
cosimone has quit [Quit: Quit.]
<pbb_>
probably, yes, but it would not be able to use a compile cache
<clever>
pbb_: nix would do the caching for you
<clever>
pbb_: nix can reuse the old build, if the inputs havent changed
<pbb_>
it can not reuse object files from the previous build if one thing changes
<clever>
pbb_: that sounds like something you just want to build normally in nix-shell
<pbb_>
the command I want to run is "nimble run oeffisearch", and this runs a normal "gcc -o /home/pbb/proj/oeffi/oeffisearch foo.c.o bar.c.o ..."
<pbb_>
(internallt)
kvda has joined #nixos
<pbb_>
*internally
<pbb_>
yeah I guess I can just run it in a nix-shell but I thought it would be nice to run it as a shell hook to save some typing
drakonis_ has joined #nixos
<clever>
pbb_: try reading gcc (the shell script) and see what gives the error you get
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JvZ50
<juliancoffee>
I just try to install sqldeveloper, but for this I have to install 18.2 or 17.4.
<juliancoffee>
It seems to be that pkgs.<somepackage> is the derivation, no?
<juliancoffee>
And in nixos/configuration.nix we have list of this values
<pbb_>
sounds about right, yes
<guill>
I'm seeing an odd issue with tNixOS's grub generation. I've been triple-booting NixOS, Windows, and Manjaro for a while without any real issues. Manjaro was updated today and NixOS has stopped generating grub entries for it. The odd thing is that, when rebuilding, it still says "Found Manjaro Linux (18.1.5) on /dev/sda8". Anybody have any idea what
<guill>
the problem might be or how I'd go about debugging it?
<juliancoffee>
So can I just import module with sqldeveloper directly from master?
<juliancoffee>
where should I have write nixpkgs.config.allowUnfree = true to have ability import another files that evaluates unfree packages?
<juliancoffee>
Because when I write this in /etc/nixos/configuration.nix I fail if the packages don't in this file
<juliancoffee>
Because when I write this in /etc/nixos/configuration.nix I fail if the packages aren't in this file
evanjs has quit [Ping timeout: 272 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gentauro has quit [Ping timeout: 265 seconds]
evanjs- has quit [Client Quit]
evanjs has joined #nixos
<pbb_>
juliancoffee: it should work everywhere in your system configuration, as long as the unfree packages are also described in the system configuration
<juliancoffee>
So I can't import it(
<pbb_>
juliancoffee: additionally this option can be set for the user tools (nix-env, nix-shell, ...)
<pbb_>
juliancoffee: you should be able to import an unfree derivation in your system configuration if you set allowUnfree = true anywhere in your system configuration
<pbb_>
juliancoffee: what does it say exactly when you try to rebuild your systems
<maralorn[m]>
juliancoffee: The nixpkgs import in sqldeveloper.nix is not affected by the option you set in the system config. Try "with import <nixpkgs> { config.allowUnfree = true; };"
orivej has quit [Ping timeout: 265 seconds]
<jtojnar>
juliancoffee that, or just using `pkgs.callPackages (builtins.fetchurl
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eacameron has joined #nixos
<eacameron>
Has anyone had issues with builtins.fetchGit and GitLab? I keep getting `fatal: not a tree object: <hash>` but if I use nixpkgs.fetchgit it works, even though it's a private repo.