<clever>
what happens if you just change the src to rtorrent-ps and see what nix does with it?
<clever>
how much do they differ?
<clever>
its in the nixpkgs manual
<clever>
hyper_ch: why cant you just build rtorrent.overrideDerivation (drv: { src = ....; }); ?
<clever>
hyper_ch: what do you want to change about rtorrent?
<clever>
hyper_ch: and force push just changes the remote branch
<clever>
hyper_ch: a hard reset just changes the local branch to point to any given commit in the repo
<clever>
yeah
<clever>
eqyiel[m]: not sure then
<clever>
eqyiel[m]: what if you do that with nix-shell --pure?
<clever>
builder for ‘/nix/store/d2kl6ic7ydi9llfq6ggcq35yq8drpn0d-libelf-0.8.13-armv7l-unknown-linux-gnueabi.drv’ failed with exit code 1
<clever>
and then check what genericBuild does
<clever>
you need to re-run nix-shell against the .drv that actually failed
<clever>
eqyiel[m]: it looks like the .drv file you pointed to didnt load
<clever>
eqyiel[m]: is $CC set?
<clever>
ah
<clever>
the last user i saw having trouble with this, had the wrong value in $SHELL because they didnt fully relog
2017-10-13
<clever>
but that has %'s
<clever>
it defaults to the entry after the last / in the url
<clever>
hyper_ch: name = "something.deb";
<clever>
hyper_ch: add a name to the fetchurl
<clever>
tilpner: this function will take a list of binaries to copy from a list of packages, and automatically grab all deps, and patchelf it back together
<clever>
ryantm: basicaly, if define a "machine" called defaults in your nixops deployments, that config is applied to every machine in the deployment
<clever>
ryantm: ah, you might want to use the defaults for nixops instead
<clever>
Lisanna: depends, on how that child package is loaded
<clever>
ryantm: what expression/command are you using?
<clever>
ryantm: another option is to create an extra file, that has many things under its imports, or to use imports directly, how are you loading eval-config?
<clever>
Lisanna: yeah
<clever>
it runs automake and autoconf, with the right args to make it work under nixpkgs
<clever>
it doesnt directly run autogen.sh
<clever>
autoreconfHook
<clever>
tilpner: add the autoreconfhook to the inputs
<clever>
Lisanna: only if they have callPackage as an argument to the default.nix
<clever>
Lisanna: line 155 defines a new callPackage, that will search within the new set, made by merging 3 others
<clever>
yeah, most of the interesting stuff is in that area
<clever>
gchristensen: and this is how you both generate, and unpack a nar
<clever>
2017-02-22 22:23:23< clever> $ nix-store --dump a | nix-store --restore b
<clever>
elvishjerricco: with chroots thrown in to try and isolate it maybe
<clever>
elvishjerricco: impurities and imperative operations everywhere!!
<clever>
elvishjerricco: and then just nix-build '<nixpkgs/nixos>' -I nixos-config=./configuration.nix -A system.build.isoImage
<clever>
elvishjerricco: create a custom configuration.nix that contains { ... }: { imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix> ]; }
<clever>
yeah, patchelf has to be ran on it
<clever>
the problem isnt that its 32bit
<clever>
asdfoiawe: did you download that binary from a website and just unpack the tar?
<clever>
lol
<clever>
gandreani: looks like a bug
<clever>
gandreani: i just tab-complete under nix-repl '<nixpkgs>'
<clever>
gandreani: nope, change the wrapper script for chromium, to clear LD_PRELOAD before running the binary
<clever>
gandreani: and when chromium is ran as a child of teamspeak, it inherits the LD_PRELOAD, which breaks chrome
<clever>
gandreani: teamspeak wants to read files in /usr, and nixpkgs used LD_PRELOAD to activate libredirect to fix that
<clever>
gchristensen: i move things to nix-env at that point
<clever>
lol
<clever>
so my / partition is 3.5gig
<clever>
the main limitation of the above method, is that you are stuck keeping whatever partition layout the machine had to begin with
<clever>
then you just need to delete all the arch related files
<clever>
gandreani: then it boots nixos, on the arch rootfs
<clever>
gandreani: and if you run the right script, it will just overwrite the bootloader and grub.conf
<clever>
gandreani: you can run nix on any linux distro, and nix-build can technicaly build a copy of nixos within /nix/store/
<clever>
i converted that eeepc from arch to nixos in under an hour, without any install media
<clever>
gandreani: just ssh into another machine that already runs irssi
<clever>
gandreani: not sure if xorg would even fit right now, lol
<clever>
gandreani: currently, its just a spare monitor for irc, and occasional resue ssh for when xorg dies
<clever>
gandreani: the SSD is only 4gig, and i currently cant deploy anything because there isnt enough room to copy the build over
<clever>
gandreani: when using targetEnv = "none"; you just install nixos normally, and then give nixops the requiered info to keep the machine booting in the future, and ssh access
<clever>
Myrl-saki: another is to just make a dummy git commit after unpackPhase
<clever>
Myrl-saki: one method i use, is to cp -r the entire source to a -orig version when i unpack, then diff -ru the orig and modified
<clever>
gandreani: thats best put into a systemd unit
<clever>
weird
<clever>
that is strange
<clever>
sphalerite: what about ls -lh /dev/zd*
<clever>
ah
<clever>
sphalerite: have you looked in /dev/rpool/ ?
<clever>
fearlessKim[m]: multi-user nix on high siera can kill the entire machine
<clever>
fearlessKim[m]: the same one they previously told nixos to stop talking about
<clever>
fearlessKim[m]: if you turn the above off and edit the store, you can seriously break many things, so its best to avoid it whenever possible
<clever>
anderslundstedt: 32bit userlands then barf if they try to readdir() an xfs directory where an inode is over 32 bits long
<clever>
anderslundstedt: and xfs will spread the inodes over the entire disk, and use an inode near the data, which can easily result in it skipping inode slots, and going over the 32bit border
<clever>
kkini: i did "df -i -t zfs" and i see 5 different numbers for used and total, and a single number (repeated 5 times) for free
<clever>
kkini: zfs is wonky, because used + free != size
<clever>
ison111: every attribute on the derivation becomes an environment variable during the build
<clever>
kkini: also, try "df -i"
<clever>
kkini: though optimize is an optional thing, purely to de-dup the store
<clever>
kkini: every single file, recursively, in the entire store, gets hardlinked under /nix/store/.links/, so the problem is already 20 times worse then you thought
<clever>
kkini: there isnt much point in trying to limit the number of files within the /nix/store/ listing, because of how --optimize works
2017-10-11
<clever>
ij: if you intentionaly avoid installing ruby with nix-env and systemPackages, then that script will fail at runtime
<clever>
tilpner: yeah
<clever>
tilpner: if you properly declare the hash of the output (see sphalerite's link), nix will allow networking
<clever>
tilpner: network is disabled during the build
<clever>
gchristensen: neat, hadnt seen that extension to irc
<clever>
copumpkin: objects in a directory within git, can have a type of file, directory, or commit, it stores a commit hash + dirname directly into the directory
<clever>
copumpkin: i recently looked into submodules and discovered that the rev for a submodule isnt present in the filesystem state
<clever>
woffs: you man want to instead add zfs.zfs_arc_max=12345 to the kernel params
2017-10-09
<clever>
gchristensen: for example, zfs root
<clever>
gchristensen: i can also see it being handy for non-standard partitioning/filesystems on existing platforms, like aws
<clever>
heh
<clever>
gchristensen: have you heard my idea about adding my kexec trick to nixops?
<clever>
tilpner: and unlike activation, it wont run again on boot
<clever>
extraSystemBuilderCmds runs at nix-build time, when creating the nixos build
<clever>
boxofrox: it will import the directory containing this nix file, into /nix/store/ (in my case, a snapshot of /etc/nixos/nixcfg) and then expand to that storepath
<clever>
tilpner: this puts a snapshot of all of my nixos config into every build
<clever>
ln -sv ${./.} $out/nixcfg
<clever>
system.extraSystemBuilderCmds = ''
<clever>
yeah
<clever>
it wont find it
<clever>
gchristensen: ah, but nixos-config is entirely mia in the search path
<clever>
nixpkgs=/run/current-system/nixpkgs
<clever>
$ echo $NIX_PATH
<clever>
yikes, the nixops AMI has a configuration.nix file!
<clever>
heh
<clever>
gchristensen: this will fetch a specific version of nixpkgs (specified in a json file), and use that for the eval, and also embed that nixpkgs into the build and use it at runtime