<craige>
I'm build an app I've just packaged for which meson requires a git submodule to be in place. I've been unable to find any examples of this being used with a default.nix for a package before but I'm sure it must have. Is anyone aware of an examples I could take a look at?
<Miyu-saki>
That seems a bit complicated.
<infinisil>
craige: fetchSubmodules = true
<infinisil>
In fetchFromGitHub
<Miyu-saki>
++
<Miyu-saki>
Seems like fetchgit, the nixpkgs fetcher, also fetches submodules by default.
<craige>
ah, too easy, thanks infinisil!
<Miyu-saki>
> builtins.functionArgs pkgs.fetchgit
<{^_^}>
'functionArgs' requires a function, at (string):263:1
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/fjxht
iqubic has quit [Remote host closed the connection]
<craige>
oh, this is just a horrible path.
<joebobjoe>
I think I messed something up on my multi-user install. when I run nix-env on my user I am getting the warning warning: name collision in input Nix expressions, skipping '/Users/joebobjoe/.nix-defexpr/channels_root/nixpkgs'
* craige
abandons phoc / phoc and focuses on plasma-mobile instead.
<craige>
infinisil++
<{^_^}>
infinisil's karma got increased to 133
<joebobjoe>
can anyone help? I have both a ~/.nix-defexpr/channels and a ~/.nix-defexpor/channels_root
<craige>
That was really helpful.
<infinisil>
:)
<craige>
once I got the submodule coming down - and there were more errors, I cold see clearly that I was wasting my time trying to port their hacks :-)
<craige>
kde-mobile + plus other patches should be an easier path.
hax404 has quit [Ping timeout: 252 seconds]
hax404 has joined #nixos
<joebobjoe>
oops I described the issue wrong
<joebobjoe>
wait nope. I described correctly
<joebobjoe>
has it works now
<joebobjoe>
I just `rm -r`d the ~/.nix_defexpr/channels
<joebobjoe>
weird that nix-channel --list didn't show anything
<joebobjoe>
even though ~/.nix_defexpr/channels/nixpkgs existed
<{^_^}>
[nixpkgs] @disassembler pushed commit from @averelld to master « python.pkgs.handout: init at 1.0.0 (#66263) »: https://git.io/fjxhD
iqubic has joined #nixos
<Arahael>
mtn: One caveat, is that a number of python libraries like to magically install dependencies of their own, using the internet to do so. They can be a problem.
iqubic has quit [Remote host closed the connection]
<Guest161>
However, I get the error `do not know how to unpack source archive /nix/store/wab3qkjcr6gkhgqjf5jnfcl0jhs03c3l-bibibiCodeNewRoman.zip` for what is a zip file. `$file /nix/store/wab3qkjcr6gkhgqjf5jnfcl0jhs03c3l-bibibiCodeNewRoman.zip/nix/store/wab3qkjcr6gkhgqjf5jnfcl0jhs03c3l-bibibiCodeNewRoman.zip: Zip archive data, at least v2.0 to extract`
<Guest161>
Could somebody point me in the right direction?
<evanjs>
Guest161: is the file greater than zero bytes? Ie not empty?
<Guest161>
yes, it actuall extracts fine when I 'keep-failed'
endformationage has quit [Quit: WeeChat 2.5]
<manveru>
Miyu-saki: well, someone packaged pleroma with it
<evanjs>
Zip files are unpacked using unzip. However, unzip is not in the standard environment, so you should add it to nativeBuildInputs yourself.
<{^_^}>
undefined variable 'Zip' at (string):263:1
<evanjs>
Guest161: ^
DariusTheMede has joined #nixos
<Guest161>
So you're saying- unpack is smart enough to know that this is a zip file, let me unzip (as per the claims of the link I gave). However, it fails to unzip because unzip is not in the stdenv nor buildInputs. I see what you're saying but the error message should have been clearer I guess.
freeman42x[NixOS has joined #nixos
<Guest161>
Thanks though.
<freeman42x[NixOS>
where can I find the JDK folder on NixOS?
<freeman42x[NixOS>
ah, I think it is: /run/current-system/sw/lib/openjdk/
<bpye>
Hey - I don't know if I'm missing something. I want to deploy via nixops to a server I manage but I use a YubiKey for my ssh keys. How can I tell nixops to let me manage the ssh keys?
zupo_ has quit [Ping timeout: 245 seconds]
<lambda-11235>
sphalerite: thanks!
<tilpner>
timokau[m]: 8 hours later, the bisect is still running :/
<freeman42x[NixOS>
etu, is that setting required for hosting or is it a setting for NixOS running under virtualbox?
<clever>
freeman42x[NixOS: host is required for hosting, guest is required for guests
<etu>
freeman42x[NixOS: It will install the host kernel modules and the software itself. It may also be useful for you to add yourself to the group vboxusers
<{^_^}>
[nixpkgs] @FRidh pushed 398 commits to staging-next: https://git.io/fjpe3
dansho has joined #nixos
<freeman42x[NixOS>
worked, thank you very much guys etu++ clever++
<{^_^}>
clever's karma got increased to 186, etu's karma got increased to 9
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<typetetris>
Is there an easy way to fetch a pull request to build and check it locally? (For example is there some copy and paste template in githubs ui ? The github help mentions a merge button with a command line instruction link beside it, but without write access, i dont see those).
<gleber_>
Can someone do `git clone https://github.com/NixOS/nixpkgs.git && nix-build nixpkgs/nixos/tests/deluge.nix` and tell me if it passes? It fails for me on master.
freeman42x[NixOS has quit [Ping timeout: 245 seconds]
freeman42x[NixOS has joined #nixos
ng0 has joined #nixos
<hexa->
testing … please stand by
valebes has joined #nixos
<timokau[m]>
tilpner: Wow, I feel like there's something wrong there
<timokau[m]>
Have you tried just manually testing a couple of channel revisions?
<tilpner>
timokau[m]: I agree. I ended up aborting it and fixing it the normal way :/
<lassulus>
how do i nix-review qt apps? if I want to start them I always get: Could not find the Qt platform plugin "xcb" in ""
<timokau[m]>
tilpner: Taking control of the bisect process is actually something I'm thinking about for nix-bisect, but nothing is implemented yet. And I'm not sure how much it would've helped in this case.
<tilpner>
timokau[m]: Right now, I had to bisect over 19k commits. With filtering over past channel revisions, that would have been <100
<gleber_>
hexa-: yep, I am seeing the same issues on my server when trying to get deluged running
hmpffff has quit [Quit: nchrrrr…]
<timokau[m]>
tilpner: Yes but the logarithmic nature of bisecting means that that doesn't make much of a difference in practice. Most checks will occur in the last couple of commits anyway
<timokau[m]>
I still don't quite understand why channels are relevant for your problem
<tilpner>
timokau[m]: It's only log2 if you don't skip
<tilpner>
And in my case I skipped a few hundred times
<timokau[m]>
tilpner: Yes, but why do you have to skip more often on non-channel revs?
<tilpner>
Because non-channel revision were broken to the point that Hydra didn't advance the channel to them
<timokau[m]>
tilpner: So a majority of the nixpkgs revisions were broken to the point that you couldn't eval them? That doesn't seem right to me.
<tilpner>
A majority of nixpkgs revisions gave me an error that didn't help decide about good/bad
jgeerds has joined #nixos
<timokau[m]>
tilpner: Again, there must be something about your problem I don't quite understand. Anyway maybe I'll implement something like that one day, my main motivation for that is the ability to have multiple bisect passes (one to reduce the range with little rebuilds, one to find the precise commit in the remaining range at any cost)
DariusTheMede has quit [Ping timeout: 244 seconds]
<tilpner>
timokau[m]: I didn't understand the problem myself, I just threw a bisect at it anyway. I've now fixed the cause, but it would have helped if the bisect came to a non-conclusion sooner
<timokau[m]>
Makes sense.
<gleber_>
hexa-: thanks for confirming! I will patch it up somehow
<ajs124>
Is there any documentation on how one would go about migrating /nix to a different partition? If possible on a live system. Can I just rsync it?
<clever>
ajs124: add that to your imports list, nixos-rebuild switch, then "fix" the configuration.nix to match where /nix will be, and nixos-rebuild boot
<clever>
ajs124: you can then boot from the rescue env, move /nix to where it should be (an offline move) and then boot back to the new generation `nixos-rebuild boot` had made
medvid has joined #nixos
<ajs124>
is there no easier way? why can't I just rsync it and boot into the new /nix?
hmpffff has quit [Client Quit]
chloekek has joined #nixos
<clever>
ajs124: you may be able to, but i find it simpler to do it offline
medvid has quit [Client Quit]
<ajs124>
hm. ok. I'll try something. The main problem with that machine is that it's a physical box and I kind of don't have access to the IPMI/iDrac.
<ajs124>
Although I could drop by the machine on monday, I guess. ugh.
<clever>
ajs124: ah, that makes things more tricky, and if you make any mistakes, its bricked
hmpffff has joined #nixos
<ajs124>
I won't be bricked, but it'll create work.
<clever>
ajs124: i did basically the same thing with my laptop a few years ago, and thats when i made rescue-boot.nix
<twoolie>
hey, is there anyone who can give me some advice regarding multiple build outputs where one of them is a python package?
xa2u is now known as xpa2
<FRidh>
twoolie: check how bindings are dealt with in python-packages.nix. Search for the use of `toPythonModule` and cases where a `.py` output is used
<disasm>
freeman42x[NixOS: if you can't ssh out, good chance your network is screwed. By default there aren't any egress rules.
<freeman42x[NixOS>
disasm, how do I "unscrew" my network lol?
<disasm>
guess I can stop my mac from compiling isocodes, it merged! :)
<disasm>
freeman42x[NixOS: first thing I'd check is DHCP works, 2nd would be the route is correct. 3rd would be DNS but you're specifying an IP. If those work, it's probably the remote system firewall that's locked down.
<freeman42x[NixOS>
disasm, hmmm, I am trying to connect to an Azure machine
aveltras has joined #nixos
<disasm>
you could also `ssh git@github.com` to see if you can ssh to other places on the internet.
<tilpner>
freeman42x[NixOS: Are you sure it's not root@?
<kandinski>
freeman42x[NixOS: I just tried to ssh to that IP and nothing is answering
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cetjs2 has left #nixos [#nixos]
chr15 has quit [Ping timeout: 250 seconds]
Zer0xp has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @Enteee opened pull request #67825 → i3lock-fancy: Bugfix, make scrot overwrite file → https://git.io/fjpJ4
<averell>
disasm: yes
Thra11 has quit [Ping timeout: 246 seconds]
philr has quit [Ping timeout: 244 seconds]
<aria>
10396 store paths deleted, 33204.66 MiB freed
joebobjoe has quit [Ping timeout: 246 seconds]
dminuoso has quit [Ping timeout: 245 seconds]
visrelic has joined #nixos
<visrelic>
hi, would this be a good place to ask some beginner nix packaging questions?
Thra11 has joined #nixos
dminuoso has joined #nixos
<clever>
visrelic: yes
<{^_^}>
[nixpkgs] @peti pushed to master « python-mailman-hyperkitty: initial version 1.1.0 »: https://git.io/fjpJr
<averell>
aria: do nix-store --optimize for bonus points
reallymemorable has joined #nixos
<visrelic>
i'm attempting to port a debian package to nix and am a bit stuck (can't seem to find relevant documentation or even packages that already do this) on reusing my systemd unit file
<clever>
visrelic: usually best to have nixos generate the systemd unit via systemd.services
<visrelic>
that too i have attempted, i'm not even sure if i'm supposed to put that expression in my default.nix
<clever>
visrelic: service stuff must go into a nixos module, not the package default.nix
<tilpner>
visrelic: E.g. atop installs its units into $out/lib/systemd
<visrelic>
tilpner: my debian package also attempts to install the unit file there, and i've also done so in nix, but this does not result in the service being found
<symphorien>
visrelic: to have systemd pick up the unit files in $out/lib/systemd you need to add the package in this option: https://nixos.org/nixos/options.html#systemd.packages
<tilpner>
visrelic: You need to tell NixOS to look there, systemd.packages might help
civodul has joined #nixos
<visrelic>
i'm using nix-env -f . -i to install my WIP, how is systemd.packages in my os config supposed to find my package?
<tilpner>
It can't
<tilpner>
You would need to pass the imported package yourself
<clever>
visrelic: nix-env cant do systemd level things
<tilpner>
E.g. systemd.packages = [ (pkgs.callPackage ./your-package.nix {}) ];
<tilpner>
Or use an overlay, that makes everything prettier
aveltras has quit [Quit: Connection closed for inactivity]
<{^_^}>
[nixpkgs] @samdoshi opened pull request #67828 → supercollider: Use qt5's own mkDerivation → https://git.io/fjpJS
<WilliamHamilton>
did anyone have luck using `haskell-ide-engine` in emacs/nix? I get the error `LSP :: Got error while processing diagnostics: readCreateProcess: /nix/store/jq8x50rkl3cm7cqkj1zsk6kfbb692iwv-cabal-helper-0.9.0.0/bin/cabal-helper-wrapper "--with-ghc=ghc" "--with-ghc-pkg=ghc-pkg" "--with-cabal=cabal" "v1-style" "/home/carlo/code/haskell/first" "/home/c
<cjpbirkbeck>
hello, sorry bring this up again, but how exactly do i override a python package to change the pythonPath attribute?
kleisli has joined #nixos
<WilliamHamilton>
besides - I wanted new-build, and set `(setq haskell-process-type 'cabal-new-repl)`, but still in the error message you can see a `v1-style`
<aria>
averell: 6124.16 MiB freed by hard-linking 591845 files
Myhlamaeus3 has quit [Ping timeout: 244 seconds]
<disasm>
averell: great job on all those PRs. I tried to merge as many of yours as I could :)
<{^_^}>
[nixpkgs] @FRidh pushed 7 commits to python-unstable: https://git.io/fjpJh
<aanderse>
averell: speaking of which... sorry about that x2go bit taking so long
<aanderse>
we should probably merge that at this point
<averell>
ah yes, that would be great :) just in time for 19.09
<visrelic>
tilpner: i've written a service module and imported it into my configuration.nix, (the package is installed in the nix store), but nixos-rebuild fails at "attribute 'package-name' missing", at the ExecStart = "${pkgs.package-name}/bin/program"; line
feep has joined #nixos
DariusTheMede has quit [Ping timeout: 245 seconds]
yosemitesam has joined #nixos
<tilpner>
visrelic: Did you add package-name to an overlay, and activate that overlay?
<visrelic>
what's an overlay?
<tilpner>
visrelic: Did you package package-name yourself?
<visrelic>
yes
<tilpner>
Package you define somewhere on your system don't suddenly appear in pkgs
<tilpner>
You can add/change pkgs with overlays
<visrelic>
can you point me to documentation on overlays?
<{^_^}>
also: 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
joebobjoe has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
noudle has joined #nixos
<FRidh>
poor hydra, it's building staging-next, staging(-small) and a python branch
demize has quit [Quit: Do Androids Dream of Electric Sheep?]
demize has joined #nixos
<visrelic>
i'm finding the overlay documentation quite lacking, is there no way i can simply have nixos use either the unit file i already have, or get the service module to use the binary that's already in my nix store?
<{^_^}>
[nixpkgs] @FRidh merged pull request #66292 → opencv: dont try cuda on 32 bit → https://git.io/fjQ98
<{^_^}>
[nixpkgs] @FRidh pushed commit from Averell Dalton to master « opencv: dont try cuda on 32 bit »: https://git.io/fjpUc
<clever>
visrelic: you need to somehow get the nix expr for building that storepath, into systemd.packages
<disasm>
visrelic: let package = pkgs.callPackage /path/to/derivation {}; at the top of the service
<clever>
this is the simplest way: systemd.packages = [ (pkgs.callPackage ./your-package.nix {}) ];
<clever>
visrelic: an overlay or packageOverride just puts it into pkgs, so you can instead do: systemd.packages = [ pkgs.thing ];
<yosemitesam>
Hi guys! I just tried to follow the NixOps manual to create a Virtualbox VM on my Macbook and I get the error "a 'x86_64-linux' with features {} is required ... but I am a 'x86_64-darwin'....". Now I'm wondering, do I have to create a linux build slave for it to work or is it possible to build everything on the target?
<{^_^}>
nixops#984 (by cleverca22, 1 year ago, open): update the automatic build slave functions under darwin
<{^_^}>
[nixpkgs] @andir opened pull request #67829 → nixos/kresd: support DNS-over-HTTPS → https://git.io/fjpUl
zaeph has joined #nixos
<cjpbirkbeck>
last time asked about overriding packages, somebody said that my changes were not prograting. how would i do that?
<visrelic>
clever: with the pkgs.callPackage, i'm assuming with ./your-package.nix you mean the full path to my package's default.nix, and that results in "error: attempting to call something which is not a function bu ta set"
<clever>
visrelic: callPackage assumes your file begins with the { stdenv }: style
<visrelic>
clever: my default.nix starts with "with import <nixpkgs> {};" because with "{ stdenv }:" i get an error about stdenv.lib being an unknown variable...
<clever>
cjpbirkbeck: the module is using pkgs.qtile, not pkgs.python.qtile, so that override has zero effect
<clever>
,callPackage visrelic
<{^_^}>
visrelic: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
WilliamHamilton has left #nixos [#nixos]
<FRidh>
cjpbirkbeck: use overridePythonAttrs instead of overrideAttrs when dealing with buildPython*
<FRidh>
though in this case it won't matter much
<clever>
FRidh: but the module isnt looking at python.qtile, so that still wont have any difference
<clever>
yeah
<yosemitesam>
clever: When I try to deploy using sudo, i get a strange error "file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at /nix/store/74sxschagphjcnjhg1sazhznqkh807hj-nixops-1.7/share/nix/nixops/eval-machine-info.nix:9:13"
<yosemitesam>
I thought it has to do with nix-channel being set up wrongly, but it looks good
<clever>
yosemitesam: sudo messes with the env vars and unsets $NIX_PATH, try using `-I nixpkgs=/path/to/nixpkgs`, find that via `echo $NIX_PATH`
<{^_^}>
[nixpkgs] @MostAwesomeDude opened pull request #67831 → pythonPackages.scandir: Fix tests on non-CPython. → https://git.io/fjpUx
<yosemitesam>
clever: the `-I` option was ignored for some reason, but I got it working by using `sudo NIX_PATH=$NIX_PATH nixops deploy -d UID`. :D thanks a lot!
<clever>
yosemitesam: what -I did you use?
<clever>
yosemitesam: and what msg did it give when saying it ignored it?
<yosemitesam>
clever: it didn't say it ignored it, it just made no difference if i used it or not. I used it as `-I nixpkgs=<output of echo $NIX_PATH>` as you said.
<clever>
yosemitesam: you need to look for the nixpkgs=/something in the echo output, and copy that part
<clever>
but `sudo NIX_PATH=$NIX_PATH` is probably simpler
<clever>
so it would be `-I nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
<yosemitesam>
Oooooh I see! My bad.
<clever>
`sudo NIX_PATH=$NIX_PATH` just undoes sudo breaking things, so the whole value is used
<{^_^}>
[nixpkgs] @jollheef opened pull request #67833 → emacsPackagesNg.telega: Add server binary to the default search path → https://git.io/fjpUj
joebobjoe has quit [Ping timeout: 244 seconds]
<yosemitesam>
yeah that's why I used it :) Maybe it would be helpful if we add this information to the wiki? The issue you pointed to has been opened for more than a year now
<clever>
yeah, adding it to the wiki may also help
<Orbstheorem>
And running `:s callPackage ./package {}` in the repl and then `python2 -c 'import Cheetah.Template' confirms that the python package is not in the derivation's build env.
<jollyjester>
clever: i use python3
<clever>
jollyjester: then replace 27 with 3
<Orbstheorem>
clever: I think you may have crossed two different discussions xD
<clever>
2019-08-31 12:48:10 < Orbstheorem> And running `:s callPackage ./package {}` in the repl and then `python2 -c 'import Cheetah.Template' confirms that the python package is not in the derivation's build env.
polman has joined #nixos
<clever>
Orbstheorem: you previously used python2 to test it, but the pastebin is using python, try python2 as well?
<Orbstheorem>
clever: python2 yields a single result which corresponds to the first like of the result in the paste (/nix/store/6nz66xsx5nmk5dcbf154xfnx6j30qxng-python-2.7.16/bin/python2)
<clever>
Orbstheorem: that doesnt look like a wrapper, what does `file` say it is?
<Orbstheorem>
/nix/store/6nz66xsx5nmk5dcbf154xfnx6j30qxng-python-2.7.16/bin/python2: symbolic link to python2.7
<clever>
Orbstheorem: `file -L` ?
<Orbstheorem>
ELF executable \o/
<clever>
Orbstheorem: definitely not the wrapper from withPackages
<Orbstheorem>
Doesn't look like a wrapper xD
<Orbstheorem>
Okay, so that expression did not work
<clever>
Orbstheorem: what about `echo $PYTHONPATH` ?
<clever>
thats another way to open the shell, and its a new process each time, so it cant cache things
<Orbstheorem>
:(
<Orbstheorem>
Alright
<Orbstheorem>
Thanks !
<{^_^}>
[nixpkgs] @edef1c pushed to master « patchutils: add perl to buildInputs »: https://git.io/fjpkz
<emilsp>
I presume nobody's tried setting up katacontainer runtime on NixOS, right?
<clever>
you can also change nix-shell to nix-build on the above cmd, to just build it
<maralorn>
Hello why are trying to write some tooling for networking especially dealing with ip addresses in nix. I am a bit startled by how cumbersome this is. I can solve this all from first principles, but I‘d love pointers to for example: Any tooling for IP addresses or subnets, an exponentiation function, a intToHexString function and back, shiftoperations on ints, a bitflip function, etc. pp.
<maralorn>
s/why/we/
<clever>
andi-: ^^
<maralorn>
clever: we == [ andi-, me ] ;-)
<clever>
ah, heh
<clever>
maralorn: seemed a bit odd for the same question to pop up twice in the same day
<clever>
maralorn: there is the ip-magic stuff i linked earlier, i wrote it for fun, then never got around to actually using it
<Orbstheorem>
clever: I was using `nix-build =(echo "with import <nixpkgs> {}; callPackage $PWD/liblms7002m.nix {}");` xD, this one is shorter xD
<{^_^}>
[nixpkgs] @aanderse merged pull request #62954 → auditd service: make more useful → https://git.io/fjgss
<maralorn>
clever: The tooling thing was a longshot more concrete is the question for exponentiation, a intToHexString function and back, shiftoperations on ints and a bitflip function.
<maralorn>
clever: thx
<Orbstheorem>
clever: If I don't use the $PWD, it tries to import if from the basepath of the tmpfile created by zsh (`=(...)`)
<ris>
is there a "standard" way in nixpkgs to fake a tty (e.g. in `checkPhase`) when a tool is being annoying and expects to be used through a tty?
<clever>
Orbstheorem: dont use =( then?
<clever>
Orbstheorem: nix-build -E can take the whole string, without having to write it to a temp file
<Orbstheorem>
Yeah, I'll use -E
<Orbstheorem>
Though I still have to use =( if I want to use `nix build` instead
<clever>
Orbstheorem: nix build can also take an expr
<Orbstheorem>
vvbb[m]: If you're just developing wild scripts you could create an environment file `shell.nix` somewhere where you explicitly declare what you want (e.g. `python.withPackages(pp: with pp;[ipython3 requests ...])`. But I do that just for quick and dirty tests and as clever mentioned you should probably do a proper package
<vvbb[m]>
if it weren't for you guys i wouldn't be using it at all
<vvbb[m]>
such a helpful community
polman has quit [Ping timeout: 245 seconds]
polman has joined #nixos
drakonis1 has joined #nixos
Myhlamaeus3 has joined #nixos
<Orbstheorem>
How can I have a cmake package to make two derivations: "out" and "dev"? Currently my "out" derivation generates two files (/nix/..-dodo/lib/libdodo.so and /nix/..-dodo/include/libdodo.h).
<vvbb[m]>
oh yeah one thing, if there's a python package not packaged in the repos, how can i install it?
drakonis_ has quit [Ping timeout: 244 seconds]
<clever>
Orbstheorem: you would have to modify the cmake file to copy headers to $dev/include/
<clever>
Orbstheorem: or have a postInstall that does `mv $out/include $dev/include`
drakonis has quit [Ping timeout: 250 seconds]
<clever>
vvbb[m]: write a nix package for it
<Orbstheorem>
clever: Section 4.4.2 of the manual says that the support code should instruct the build system to put them in $outputDev. Is this supported in cmake?
<{^_^}>
[nixpkgs] @jollheef closed pull request #67833 → emacsPackagesNg.telega: Add server binary to the default search path → https://git.io/fjpUj
<clever>
Orbstheorem: personally, i just write my cmake files to use the $dev env var, and dont bother with making it work outside of nix
<vvbb[m]>
ok so after i've done making a .nix of a python library how can i build and install it?
<Orbstheorem>
clever: It's not my project :) I'd like to fix upstream ^^
<clever>
Orbstheorem: a postInstall on the nix side, to just `mv $out/include $dev/include` would be simplest
<clever>
let cmake make a mess, then clean up after it :P
<clever>
vvbb[m]: nix-build
<Orbstheorem>
vvbb[m]: Nix does not have a notion of “installing” something. But rather derivations, in a way you can use `nix-env -i` to emulate what installing something does, but I'd recommend against, rather you can use nix-shell to enter in an environment which contains the package you need.
<Orbstheorem>
vvbb[m]: As clever hinted, you can build using `nix-build` (e.g. `nix-build my-package.nix`).
drakonis has joined #nixos
chloekek has joined #nixos
<Orbstheorem>
vvbb[m]: If you'd rather make a script which you can run from you shell `./my-cool-script.py`, you can use nix-shell as a shebang. [This article which I just found](http://chriswarbo.net/projects/nixos/nix_shell_shebangs.html) seems to explain this well.
<vvbb[m]>
error: cannot auto-call a function that has an argument without a default value ('lib')
<vvbb[m]>
getting this when trying to build it
<vvbb[m]>
took it from the manual page template
<Orbstheorem>
clever: Thanks, is `$dev/include` the directory where I should put my `libdodo.h` file so that other packages will find the header file when I include the derivation `dodo.dev` in `buildInputs`?
ilya-fedin has quit [Quit: Connection closed for inactivity]
<Orbstheorem>
vvbb[m]: Can you point me the section in the manual so I can see the file?
<Orbstheorem>
vvbb[m]: The first example file shows how to write a python package definition in a pure way, the error you're getting is because, in order to build that derivation, it requires 3 arguments: `lib`, `buildPythonPackage` and `fetchPypi`. You can continue reading to see how to make a derivation that requires zero parameters and thus may be build directly using nix-shell.
<vvbb[m]>
hmmm
<clever>
,callPackage
<{^_^}>
If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<Orbstheorem>
clever: callPackage doesn't work in that case, because buildPythonApplication is not in the top level.
<clever>
pythonPackages.callPackage then
<FRidh>
pass in python instead
<Orbstheorem>
vvbb[m]: As clever suggested, you can try `nix-build -E '(import <nixpkgs> {}).pythonPackages.callPackage ./foo.nix {}'`
<Orbstheorem>
I'd argue though, that such a complicated build command is not beginner-friendly
<vvbb[m]>
1 dependencies couldn't be built
<vvbb[m]>
that's the error i get
<vvbb[m]>
when running it with nix-shell
<clever>
vvbb[m]: which dependency?
<vvbb[m]>
it lists python3.5-pydle and python3-3.5.6-env
drakonis_ has joined #nixos
<clever>
vvbb[m]: which one exited with a non-zero status?
<vvbb[m]>
builder for '/nix/store/wf0yzf6zrm658z4krph4p645s7jir5wm-pydle-0.9.4.tar.gz.drv' failed with exit code 1
<clever>
vvbb[m]: any error above that?
<vvbb[m]>
nvm
<vvbb[m]>
fixed it
<vvbb[m]>
the version was wrong
<vvbb[m]>
ok so it did build and i entered nix shell, so do i have to run this EVERY time i want to build anything withi t?
<clever>
vvbb[m]: its usually easy to go from a nix-shell to a nix-build
simukis_ has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
<vvbb[m]>
error: cannot auto-call a function that has an argument without a default value ('lib')
<vvbb[m]>
this. every time
<clever>
vvbb[m]: you need to use callPackage
casaca has quit [Ping timeout: 246 seconds]
<vvbb[m]>
how?
<clever>
,callPackage vvbb[m]
<{^_^}>
vvbb[m]: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<clever>
vvbb[m]: 2019-08-31 14:01:58 < Orbstheorem> vvbb[m]: As clever suggested, you can try `nix-build -E '(import <nixpkgs> {}).pythonPackages.callPackage ./foo.nix {}'`
<TallerGhostWalt_>
There is a line `nixLib = pkgs.callPackage /path/to/yarn2nix/nix-lib `
<TallerGhostWalt_>
how do I get the path there?
chloekek has quit [Ping timeout: 245 seconds]
<clever>
TallerGhostWalt_: you need to clone yarn2nix from github
<andgate>
For searching packages the recommended command seems to be `nix-env -qaP`, but why is the -P option included? Why would packages need to be preserved during a query?
<TallerGhostWalt_>
@clever okay I have done that and it seems to be properly installed
<TallerGhostWalt_>
in other words I am able to generate yarn.nix
<abbradar>
yorick: tensorflow fixed in e0795aa5e8c759bca435270facb5f90fefaa909a
<abbradar>
tensorflow is as problematic as usual
<yorick>
abbradar: did you manage to reproduce the cuda-crashing bug report?
<evanjs>
freeman42x[NixOS: that would be in the top portion of a nix file. After the in, you can specify environment.systemPackages and include python-with-packages
<yorick>
tensorflow taking an hour to build+test is a problem for me
hax404 has quit [Ping timeout: 264 seconds]
hax404 has joined #nixos
<abbradar>
yorick: no, still working on it. it takes 2 or 3 hours to build cuda build for me
<evanjs>
freeman42x[NixOS: just make sure you specify python2Packages rather than 3
<abbradar>
at least python2 is fixed
<yorick>
abbradar: awesomE!
<yorick>
abbradar: maybe we should consider making the python3 build the default
<abbradar>
I guess we'll just reeeeally have to move to py3 for 20.03 cause EOL
<Orbstheorem>
I've been trying to package some lib for about 4 hours now, I've been dealing with bad-versions, outdated build instructions, multiple dependencies with unreleased versions and tons of compiler errors. I want to say that, given my experience in embedded software development, this has been a great experience compared to 9-hour-long debugging sessions just to get one library working with the right versions and
<Orbstheorem>
so on. Fair enough, it's been 4 hours, but I've had way less frustration than I used and now I can easily replicate it in a different machine instead of having to go though my notes, crossing my fingers that I didn't mess up or forgot any step. Nix <3
<lambda-11235>
So I'm using nix-shell for development offline. Well `nix-shell default.nix` always work offline after the first run? Besides doing an upgrade is there anything that well cause it to try to contact the Nix server?
drakonis1 has joined #nixos
<freeman42x[NixOS>
how can I add 1 more path to the environment PATH variable?
<freeman42x[NixOS>
I recall there was some setting which could be done in configuration.nix
<clever>
freeman42x[NixOS: anything you add to systemPackages will appear within PATH
fusion809 has quit [Remote host closed the connection]
<freeman42x[NixOS>
clever, I know, but I have some executables that were added by pip install and are not part of the path
<ivan>
I noticed `nix show-derivation` exists but I'd be reinventing a wheel I suspect
<clever>
ivan: the whole point of nix-shell is to handle that kind of thing for you
<clever>
freeman42x[NixOS: your not really supposed to be using pip on nixos
<{^_^}>
[nixpkgs] @flokli opened pull request #67845 → nixos/redis: unbreak module, add test → https://git.io/fjpLz
gjabell has joined #nixos
juhe has quit [Read error: Connection reset by peer]
rsoeldner has quit [Remote host closed the connection]
juhe has joined #nixos
<Orbstheorem>
How do I specify a dependency's minimal version?
DariusTheMede has joined #nixos
<emily>
generally you don't since nixpkgs packages are pinned to one specific version; if it's something like python where there are multiple versions then there's specific stuff for gating on that
Soo_Slow has joined #nixos
<infinisil>
There are some utils you can use to compare version numbers at least
<infinisil>
> lib.versionAtLeast "1.2" "1.1"
<{^_^}>
true
<infinisil>
Um what
<infinisil>
Ah
<Orbstheorem>
infinisil: Hi o/
<infinisil>
o/
<Orbstheorem>
I think I've seen asserts on some derivations on nixpkgs
<Orbstheorem>
Is it recommended though?
<infinisil>
Ah yeah, I guess if you're sure that it doesn't work with some versions and that people are likely to use different ones then it can make sense
<infinisil>
E.g. it makes sense in linuxPackages because some modules don't work with all versions and people are using lots of different linux versions
<freeman42x[NixOS>
does anyone know in which package I can find this lib? "error while loading shared libraries: libatspi.so"
<Orbstheorem>
For instance, the library I'm packaging requires libc>=2.17 and libusb>=1.0.10
feep has quit [Ping timeout: 258 seconds]
<infinisil>
Ah I wouldn't put assertions for that no
<Orbstheorem>
Is that something I should specify versioning for?
<Orbstheorem>
Oh okay ^^
* Orbstheorem
would like something like lintian for nix :)
<infinisil>
> libusb.name
<{^_^}>
"libusb-compat-0.1.5"
<infinisil>
Huh
<Orbstheorem>
>libusb1.name
<Orbstheorem>
> libusb1.name
<{^_^}>
"libusb-1.0.22"
<infinisil>
Ah
<infinisil>
,locate libatspi.so
<{^_^}>
Found in packages: at-spi2-core
<infinisil>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<infinisil>
freeman42x[NixOS: ^
chloekek has joined #nixos
feep has joined #nixos
<Orbstheorem>
How do I specify a package with no sources? (i.e. a meta package.)
<edef>
elaborate on what you're trying to do?
<DariusTheMede>
I am trying to run a jupyter notebook with an R kernel as described here: https://nixos.wiki/wiki/R
<DariusTheMede>
I tried nix-shell --pure -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz but get
<DariusTheMede>
sh: jupyter: command not found
<DariusTheMede>
<DariusTheMede>
In system2("jupyter", "notebook") : error in running command
<DariusTheMede>
Warning message:
zupo has joined #nixos
<freeman42x[NixOS>
I did find out it was in that package, but installing it did not fix the error message, infinisil++
<{^_^}>
infinisil's karma got increased to 134
<Orbstheorem>
s/boudling/making a bundle/ xD
<infinisil>
Orbstheorem: What do the build steps of the package all do?
feep has quit [Ping timeout: 245 seconds]
klntsky has quit [Remote host closed the connection]
<edef>
Orbstheorem: hm
klntsky has joined #nixos
<infinisil>
There is unpackPhase = ":" which you can use with mkDerivation if you don't want to set a src, but oftentimes there's a better way depending on what you need, e.g. pkgs.runCommand
lambda-11235 has quit [Quit: Bye]
<Orbstheorem>
I'm not going for runCommand because I intend to eventually get this on nixpkgs.
<infinisil>
there's nothing wrong with using runCommand in nixpkgs
bakakuna has joined #nixos
<Orbstheorem>
Still, I'm not running any command, it's just a bundle of pkgs.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guanin has joined #nixos
<qyliss>
runCommand is a lighter-weight version of mkDerivation
<qyliss>
mkDerivation runs lots of commands; runCommand just runs one
valebes has quit [Ping timeout: 245 seconds]
freeman42x[NixOS has quit [Remote host closed the connection]
<Orbstheorem>
hum, so even if the name is misleading, it is preferable to use runCommand?
<qyliss>
For simple things, yes
freeman42x[NixOS has joined #nixos
<Orbstheorem>
Hum
valebes has joined #nixos
valebes has quit [Read error: Connection reset by peer]
trevthedev has joined #nixos
valebes has joined #nixos
<trevthedev>
hi all, so i'm trying to package Minecraft Bedrock Edition via the appimage for NixOS, i have it working quite well actually, the launcher opens just fine but then once i try to run the game it gives me an error stating the ELF class is wrong, any ideas? The package source here: https://0x0.st/z4vb.nix
<Orbstheorem>
`builder for '/nix/store/cp9r84jb40xnm4zikxhd3lzlhvhfzqja-libxtrx-all.drv' failed to produce output path '/nix/store/8clsdjzz7gjrznvbc45pcsxl8p67dzb6-libxtrx-all'`
<Orbstheorem>
:(
<trevthedev>
can build via nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
<evanjs>
Anybody have recommendations for module development/testing? eg nixos-shell, etc. Getting sick of -I nixpkgs=path and etc. though I also wonder how I’m going to test hardware (eg with #64552) devices in VMs if I were to use NixOS-shell, etc. like I guess just use the passthrough?
<tilpner>
trevthedev: Run file on the mcpelauncher-client
<evanjs>
Figure nixos-shell and etc is better than rebooting my ZNC server 30 times an hour. Not to mention I literally use whatever linux-latest is available, which then rebuilds VBox, etc...
<trevthedev>
pasted full error previously, /nix/store/m0xj1w9jwl1axa8vm10b9sd2w5pzym25-MinecraftBE-extracted/usr/bin/./mcpelauncher-client: error while loading shared libraries: libz.so.1: wrong ELF class: ELFCLASS64
<trevthedev>
Process exited with unexpected exit code: 127
<trevthedev>
alright
<clever>
trevthedev: let me see what happens if i try to reproduce it, ive got an account
<tilpner>
evanjs: I try to avoid the necessity of switching into the configuration by checking the generated/built config with nix-instantiate
<trevthedev>
where exactly is mcpelauncher-client? lowkey cant find it xd
<tilpner>
You pasted the path
<trevthedev>
oh yeah
<tilpner>
evanjs: But of course that depends on what module you're writing. If it's only difficult at runtime, that doesn't help at all
<evanjs>
tilpner: right, runtime testing is one thing (eg do these driver features do anything when enabled/are they working properly?) but the main thing I wanted to address first is if it builds.
<trevthedev>
hmm
<trevthedev>
mcpelauncher-client: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=1ec093544e253427efaea8e5b0992e158b35b0f8, with debug_info, not stripped
<trevthedev>
that explains a bit
<trevthedev>
could've sworn it was 64, but guess not haha
<evanjs>
Without rebuilding my current system off nixpkgs, as I have linux_latest + VBox
<clever>
trevthedev: oh, you ran file on the wrong thing when i asked you earlier, that makes the solution a bit simpler, one min
<tilpner>
evanjs: Partial evaluations of just config.foo.bar.quux are much faster than evaluating config.system.build
<trevthedev>
alright ^^
<clever>
trevthedev: oh, or not, its a 64bit appimage, containing a 32bit program
<clever>
trevthedev: at this point, it would be simpler to just forcibly extract the files, and then patchelf it like any other nix package
<clever>
and ignore the entire appimage stuff
<evanjs>
tilpner: Right for sure. nixos-shell looked attractive in that it builds a minimal working system with whatever you specify, sorta like nixops, though I think it uses QEMU?
<evanjs>
tlipner: I also need to fix nur so I can access it from nix-env... or I guess just in systemPackages, probably
<tilpner>
clever, trevthedev: appimageTools.extractType2 can be used for that, then do whatever patching you want
<clever>
ah, extract rather then wrap
<tilpner>
(But it's likely to need a lot of patching, so...)
DariusTheMede has quit [Ping timeout: 245 seconds]
<tilpner>
evanjs: What would you need to use nix-env/systemPackages for?
<clever>
tilpner: i already packaged multimc, which uses the java edition
<trevthedev>
hmmmm
<evanjs>
tilpner: for installing nixos-shell as its in the NUR
<freeman42x[NixOS>
is there some NixOS preffered application for viewing operating system level error logs?
<symphorien>
journalctl ?
<clever>
trevthedev: i updated the gist again
<trevthedev>
alright
o1lo01ol1o has quit [Remote host closed the connection]
<trevthedev>
do i still need to add the --set-interpreter for the 32bit interpreter?
<clever>
trevthedev: for the 32bit binaries, yes
<trevthedev>
alright
<evanjs>
freeman42x[NixOS: just the normal journalctl/systemctl and dmesg, etc. unless you’re looking for something super specific that isn’t in either of those places
valebes has quit [Quit: Quit]
<trevthedev>
ah, progress!
<trevthedev>
need libEGL, will work on that
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
<trevthedev>
libglvnd.out
<trevthedev>
gah, where do i put this again in the package?
<clever>
trevthedev: libEGL.so is in /run/opengl-driver/lib
o1lo01ol1o has joined #nixos
<trevthedev>
hmm
juhe has quit [Quit: Leaving.]
<trevthedev>
idk what to do with this information ;-;
<clever>
trevthedev: add it to the rpath, the same way i added $out/usr/lib/
<trevthedev>
hmm, so i put libglvnd.out in the lib.makeLibraryPath?
<clever>
trevthedev: just /run/opengl-driver/lib
<clever>
trevthedev: after $out/usr/lib
<trevthedev>
throws error, says it failed to build but without reason
<trevthedev>
builder for '/nix/store/p5mw8w6j3vgd5dy5qv4p8ashphws153k-mc-bedrock.drv' failed with exit code 1
<trevthedev>
error: build of '/nix/store/p5mw8w6j3vgd5dy5qv4p8ashphws153k-mc-bedrock.drv' failed
<clever>
trevthedev: can you paste the rpath line here?
<clever>
trevthedev: also, you dont need to be in nix-shell when testing this
<trevthedev>
alright
<trevthedev>
throws issue still, hm
<trevthedev>
does it do this for you?
<clever>
mc-bedrock/usr/bin/mcpelauncher-ui-qt: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
<visrelic>
i finally got my service running by manually setting the nix store path in the service description, can anyone confirm there is no way to describe an entire package in 1 file for nixos?
<tilpner>
You can do pretty much anything NixOS can do in one file
<tilpner>
It's not always a good idea though
<visrelic>
can't be worse than relying on the derivation not changing :P
<trevthedev>
hmm
hax404 has quit [Ping timeout: 264 seconds]
<tilpner>
visrelic: You'll need to give more pastes for anyone to be able to help you
<clever>
trevthedev: no such file or directory means the interpreter isnt set
<tilpner>
trevthedev: You don't usually put binaries into nixpkgs
<trevthedev>
oh yeah, i commented out the interpreter on accident
<tilpner>
visrelic: You haven't really said what you want help with yet, but probably that
<visrelic>
tilpner: oh sry, i stated that a few hours ago, i'm attempting to port my debian package
<trevthedev>
hmm, that's annoying. used ldd to find what the binary needed, used locate to get all of the stuff, and then used nixrepl to resolve paths. throw those to be the rpath, and uh, it still is missing stuff. fun
<tilpner>
visrelic: And why can't you do that in just one file?
dasj19 has quit [Quit: dasj19]
<clever>
trevthedev: when binary a loads library b, and b needs a c, it uses the rpath on library b
<visrelic>
tilpner: it builds, everything gets installed to /nix/store, but as far as i can tell, installing a systemd service is a clusterfuck compared to debian's approach (though i understand why they don't use the same xD)
<clever>
trevthedev: so you need to set the rpath on all of the libraries in $out/usr/lib/
<clever>
trevthedev: for $lib in $out/usr/lib/*.so; do patchelf --set-rpath .... $lib; done
<tilpner>
visrelic: We told you to put the package into systemd.packages, not the store path
<{^_^}>
[nixpkgs] @dywedir pushed commit from @primeos to master « waypipe: init at 0.6.1 (#67713) »: https://git.io/fjpqk
<visrelic>
tilpner: yea, as i said, clusterduck
<visrelic>
tilpner: unless "systemd.packages" is a path, i don't even understand your last message
<clever>
visrelic: you can use import or callPackage to load the other nix file, and then put that into systemd.packages
<tilpner>
visrelic: Because Nix packages can be present in multiple versions, and can be present without being "installed", you wouldn't want all present packages to automatically add systemd packages
<trevthedev>
gah, am confused
<tilpner>
visrelic: So the NixOS option systemd.packages is used to select which packages you want to use packages from
<visrelic>
tilpner: i do have a module containing a systemd.packages expression that's a direct port of my unit file, and have imported that in my configuration.nix, and that works, but only if i expect my package's derivation's hash not to change, since that's hard coded
<tilpner>
visrelic: If you're not using NixOS, we've been having a fantastic misunderstanding
<clever>
visrelic: how did you generate that store path?
<tilpner>
visrelic: Line 13 should be: ExecStart = "${pkgs.clarissa}/bin/clarissa -p"; after you added clarissa with an overlay
<visrelic>
nix-env -f . -i
freeman42x[NixOS has quit [Ping timeout: 245 seconds]
<visrelic>
tilpner: ${pkgs.clarissa} is the first thing i tried several days ago
<clever>
visrelic: then do ExecStart = "${import /path/to/default.nix}/bin/clarissa -p";
<tilpner>
visrelic: Alternatively you can do clarissa = pkgs.callPackage ./clarissa.nix {}; in a let-in block above
<visrelic>
tilpner: i don't get overlays
<clever>
visrelic: overlays just enable you to do pkgs.clarissa instead of what i gave
<tilpner>
visrelic: I can link the manual or answer specific questions about overlays
<visrelic>
i've looked at several manual pages about overlays, i don't get it
<trevthedev>
;-;
<visrelic>
they seem to be missing some context
<clever>
visrelic: nixpkgs.overlays = [ (self: super: { clarissa = pkgs.callPackage ./clarissa.nix {}; }) ]; is a basic overlay to solve this problem
ossus has joined #nixos
<trevthedev>
hmm, so do i continue locating the libraries needed?
<clever>
trevthedev: did you try setting the rpath on everything in $out/usr/lib/ yet?
<trevthedev>
idk what you mean
<trevthedev>
sorry, this is my first package haha
<clever>
trevthedev: 2019-08-31 17:48:24 < clever> trevthedev: for $lib in $out/usr/lib/*.so; do patchelf --set-rpath .... $lib; done
<clever>
2019-08-31 17:47:45 < clever> trevthedev: when binary a loads library b, and b needs a c, it uses the rpath on library b
<clever>
2019-08-31 17:47:57 < clever> trevthedev: so you need to set the rpath on all of the libraries in $out/usr/lib/
<trevthedev>
so i just put for $lib in $out/usr/lib/*.so; do patchelf --set-rpath .... $lib;?
<clever>
trevthedev: yeah
<trevthedev>
build fails
<clever>
trevthedev: did you replace the .... with the ${lib.makeLibraryPath ...} ?
<trevthedev>
oh, no sorry
freeman42x[NixOS has joined #nixos
<trevthedev>
what do i put in for the ellipsis?
<clever>
trevthedev: the same thing your using for the other --set-rpath
<bodqhrohro>
How to make a GTK+2 theme based on clearlooks engine displayed properly in apps from nixpkgs? I tried installing gtk_engines package, but it didn't help.
<trevthedev>
zlib, gcc.cc, etc?
<clever>
trevthedev: yes
<trevthedev>
still throws the same error with no reason
<clever>
trevthedev: is the ;done present?
shibboleth has quit [Quit: shibboleth]
<clever>
trevthedev: compare what i gave to your code
<trevthedev>
idk what you mean by ;done
<clever>
2019-08-31 17:57:40 < clever> trevthedev: 2019-08-31 17:48:24 < clever> trevthedev: for $lib in $out/usr/lib/*.so; do patchelf --set-rpath .... $lib; done
<clever>
trevthedev: the last word in this line
<clever>
2019-08-31 17:58:28 < trevthedev> so i just put for $lib in $out/usr/lib/*.so; do patchelf --set-rpath .... $lib;?
<kthnnlg>
Hi All, I'm working with some experimental microkernel that needs grub somewhere in some particular range of versions, e.g., approximately 2.02 (beta). As such, I'd like to install and experiment a number of grub versions, in the most straightforward, recommended way possible. What would be a good approach? If possible, I'd like to see if it can be done using just command-line tools, e.g., nix-shell. Thanks
<clever>
trevthedev: which you omited in the question
<trevthedev>
there we go
<trevthedev>
hm, brilliant
<trevthedev>
./mcpelauncher-ui-qt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
reallymemorable has joined #nixos
<clever>
trevthedev: try running lddtree on mcpelauncher-ui-qt
<trevthedev>
2 for $lib in $out/usr/lib/*.so; do patchelf --set-rpath ${lib.makeLibraryPath [ zlib gcc.cc ] } $lib;done
<trevthedev>
alright
<trevthedev>
ignore the 2
drakonis1 has quit [Ping timeout: 252 seconds]
gjabell has left #nixos ["WeeChat 2.5"]
<trevthedev>
should i grep not found?
<clever>
trevthedev: try changing it to $out/usr/lib/*.so*
<trevthedev>
alright, stil same error
<trevthedev>
s/stil/still
<trevthedev>
for $lib in $out/usr/lib/*.so*; do patchelf --set-rpath ${lib.makeLibraryPath [ zlib gcc.cc ] } $lib;done
<trevthedev>
./mcpelauncher-ui-qt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
<clever>
trevthedev: can you pastebin the output of lddtree on the binary?
<trevthedev>
ye
freeman42x[NixOS has quit [Ping timeout: 244 seconds]
<trevthedev>
for $lib in $out/usr/lib/*.so*; do patchelf --set-rpath ${lib.makeLibraryPath [ glib zlib gcc.cc ] } $lib;done
<trevthedev>
will check
<clever>
trevthedev: i dont see glib in the 2nd rpath
<clever>
oh wait, there it is
<trevthedev>
libglib-2.0.so.0 => not found
<evanjs>
Anybody know how I’d go about making vim skeleton files or whatever they’re called for my vim expression/configuration in NixOS? Or rather, what’s the easiest way I can make new .nix files bring me to an empty file with `{ config, lib, pkgs, ...}: {}`, etc?
Myhlamaeus4 has joined #nixos
Myhlamaeus3 has quit [Read error: Connection reset by peer]
<clever>
trevthedev: not sure why its not finding it
<Miyu-saki>
My guess is that one of the dependents of mcpelauncher does not have its runpath patched.
<trevthedev>
hmmmmmm, perhaps
<clever>
Miyu-saki: thats where lddtree comes into play
<visrelic>
clever: using ${import /path/to/default.nix} works :D , the nixpkgs.overlays line you provided, i'm assuming that's supposed to be added to configuration.nix, and then switch to ${pkgs.clarissa} in clarissa.nix, but that loses the path to the default.nix
joebobjoe has quit [Ping timeout: 246 seconds]
<clever>
visrelic: the path has to be relative to configuration.nix
<trevthedev>
hmm
<clever>
visrelic: or you make your own module, in the same dir as default.nix, use ./default.nix, and then put that module into imports, imports = [ /path/to/module.nix ];
<visrelic>
clever: if i do that, and change my clarissa.nix to ${pkgs.clarissa} i get "error: attempt to call something which is not a function but a set"
<clever>
visrelic: can you put both files into a gist
<Orbstheorem>
Took me about 9 hours of work but I got my xtrx working \o
<Orbstheorem>
\o/
<Orbstheorem>
Also, I forgot dinner xD
<_zincy>
classic
<visrelic>
clever: no, but i tried your second suggestion which works perfectly and seems like a cleaner solution to me (since now all files are in the same directory/repo), they're here if you want to see https://gitlab.com/evils/clarissa/tree/nix
<trevthedev>
nice, good job Orbstheorem
asymptotically has quit [Quit: Leaving]
<clever>
visrelic: you need to swap the comment on lines 1/2 of default.nix, then callPackage will work
<trevthedev>
so, sin can be good
<trevthedev>
i put appimage-run in
<trevthedev>
and now that library is found
<visrelic>
clever: ah, but then i get, "cannot coerse a function to a string"
valebes has joined #nixos
<clever>
visrelic: now you need to use callPackage instead of import
<clever>
visrelic: pkgs.callPackage ./. {}
<trevthedev>
oh nevermind im illiterate it seems
Palpares has joined #nixos
Palpares_ has quit [Ping timeout: 260 seconds]
<_zincy>
I am having trouble with this default.nix - I am not sure where the patchFlags should go. It appears to fix the problem that I have here
<clever>
_zincy: line 13, where it does import src {}, you want to do `import src { overlays = something; }
<clever>
_zincy: you can probably add overlays around line 1-4, to accept it along with the json
<{^_^}>
[nixpkgs] @alyssais opened pull request #67854 → mhonarc: 2.6.18 -> 2.6.19, fix build, and cleanup → https://git.io/fjpmv
ossus has joined #nixos
ilya-fedin[m] is now known as ilya-fedin
drakonis has quit [Quit: WeeChat 2.4]
ossus has quit [Ping timeout: 258 seconds]
boxscape has joined #nixos
_zincy has quit [Ping timeout: 252 seconds]
joebobjoe has joined #nixos
mac10688 has joined #nixos
_zincy has joined #nixos
<o1lo01ol1o>
I keep getting "Warning: Identity file /run/keys/hqr-secret not accessible: Permission denied." in a hydra job that tries to send builds to a `darwin` machine. The ssh key it's supposed to use is in there but I can't figure out why it can't get access to it.
<o1lo01ol1o>
It sends builds to the machine for 40 minutes or so and then starts to abort jobs with that error
Blessjah has quit [Ping timeout: 258 seconds]
Blessjah has joined #nixos
slack1256 has joined #nixos
philr has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<visrelic>
clever: that works, but it seems somewhere along the way the binary stopped being in the path, i'm also unclear about how to get my man pages to work
ng0 has quit [Quit: Alexa, when is the end of world?]
inkbottle has quit [Ping timeout: 246 seconds]
<beyuu>
i'm trying to install nixos, but i'am getting a bunch of warning saying i can't reach https://cache.nixos.org/nix-cache-info and other things. Error at the end says "buid of ... nixos-system-nixos ... failed" since it can't build the dependencies. Does someone have a clue where the issue is?