<clever>
Marks the object as requiring executable stack.
<clever>
execstack
<clever>
The recognized keywords are:
<clever>
-z keyword
<clever>
typetetris: i think i gave super and self backwards for line 7
<clever>
Dezgeg: that will serialize all of the systemd state to a file, then execve("/sbin/init") or similar, to reload, then deserialize and resume itself as a new version
<clever>
Dezgeg: systemctl daemon-reexec
<clever>
Dezgeg: also, most init systems already have an RPC function to do this for you
<clever>
Dezgeg: lol
<clever>
sphalerite: id still need to do some systemd detection, and fallback to the improper shutdown when systemd is absent
<clever>
sphalerite: ah
<clever>
typetetris: you overwrote the memo-monad in its output, but not the memo-monad that it internally uses for other things
<clever>
typetetris: i believe you want to do haskelll.packages.ghc822.override { overrides = super: self: { .... }; };
<clever>
Dezgeg: the kernel wont let you attach to pid 1
<clever>
sphalerite: yeah, but its not entirely clear how to make it boot a specific image, rather then its own, and i wanted it to work without relying on systemd
<clever>
tilpner: if the filesystem is playing by the rules, sync should prevent any data loss
<clever>
sphalerite: :D
<clever>
tilpner: it could, but that would improperly shutdown the host
<clever>
tilpner: such major changes cant be done with the system running
<clever>
tilpner: the only time ive had to use that rescue boot so far, was to move /nix from the / mountpoint to its own partition, mounted at /nix
<clever>
tilpner: that just takes the same kernel+initrd, throws them into /boot, and adds a menu option for it
<clever>
sphalerite: you would use it before the fs gets clobbered, to backup the important stuff
<clever>
sphalerite: you can then use that to restore all metadata at a later point, and read any file that existed at the time of the dump, as long as it hasnt been overwritten by other future writes
<clever>
sphalerite: dumpe2fs will dump all of the ext2/3/4 metadata, and only the metadata
<clever>
sphalerite: oh, have you seen what dumpe2fs does?
2018-01-26
<clever>
tilpner: is jack running?
<clever>
ottidmes: one-shot systemd service is the simplest
<clever>
just make sure to provide a password hash in the input config
<clever>
tilpner: so if you toggle the mutable users setting, it wont ask for a password
<clever>
tilpner: it currently asks for a password on stdin, but thats just normal nixos-install logic
<clever>
tilpner: nope
<clever>
rprospero: so you either have to append to the old installPhase in overrideDerivation, or cheat with another later phase
<clever>
rprospero: that breaks pre/post install
<clever>
rprospero: was installPhase specified in the derivation in nixpkgs?
<clever>
tilpner: this bash script is pre-installed in that kexec image, you literally run "justdoit" over ssh, and it nukes the hdd and installs nixos
<clever>
tilpner: the justdoit script helps automate it further
<clever>
you are free to format whatever you want
<clever>
tilpner: basically, you compile a tarball with nix-build, upload it to any linux machine with scp, unpack it to /, and run /kexec_nixos, and now nixos is running from ram
<clever>
but it could create a file that disables future runs
<clever>
every boot
<clever>
tilpner: and if you use my kexec trick instead, you can just format the entire drive, rather then keeping the original FS
<clever>
tilpner: that could be done by a systemd one-shot unit as well, after booting
<clever>
kexec might work better there, but ive not tried it on hetzner
<clever>
FareTower: your not really supposed to install libraries, dynamic or static
<clever>
bulldog_: nix doesnt make mistakes like that
<clever>
bulldog_: the packages passed as the pkgs argument of the module should include those overlays
<clever>
kingofthepirates: dd it to the root of the usb drive
<clever>
kingofthepirates: the iso image already contains all the formating, just dd it directly to the root of the device and that will format everything
<clever>
so ./result/bin/something
<clever>
if you used nix-build, it will make a result symlink pointing to $out
<clever>
yeah
<clever>
bulldog: put in an obviously wrong hash and then look at the error, thats the simplest way
<clever>
taohansen: it seems to have found nix just fine, are you mixing different terminals?
<clever>
taohansen: can you run nix-info?
<clever>
taohansen: yeah, thats right
<clever>
iqubic: add the proper callPackage to all-packages.nix, and maybe move fmod into its own directory
<clever>
taohansen: and ls -lh /nix/store/4vyccksxkbn0kky1bh6g847yrz749cbk-nixpkgs-18.03pre126020.931a0b8be80/nixpkgs
<clever>
taohansen: thats normal
<clever>
iqubic: because its not in pkgs.fmod
<clever>
taohansen: that is a list of several paths, you cant just ls $NIX_PATH
<clever>
taohansen: ls -lh /home/taohansen/.nix-defexpr/channels/nixpkgs
<clever>
soembody can file an issue to fix it
<clever>
iqubic: yeah, because the last guy to add it, did it wrong
<clever>
and now you have infinite recursion
<clever>
bulldog: and pkgs relies on the value of overlays being loaded
<clever>
bulldog: the value of fetchFromGitHub relies on having pkgs loaded
<clever>
callPackage <nixpkgs/pkgs/games/zandronum/fmod.nix> {} is one way
<clever>
with the correct relative path
<clever>
you need to callPackage it, like like 8 did
<clever>
iqubic: somebody hacked it in, and never added a top-level fmod, so its been in nixpkgs for over a year, but its just not visible
<clever>
2018-01-25 21:39:41 -!- iqubic` [~user@c-24-17-226-146.hsd1.wa.comcast.net] has joined #nixos
<clever>
thats well after you reconnected
<clever>
wasnt sure what you saw when you ping timeout'd
<clever>
2018-01-25 21:37:13 < clever> iqubic: which just unpacks $src, and runs ./configure && make && make install
<clever>
2018-01-25 21:36:54 < clever> iqubic: its using the default builder for the stdenv
<clever>
iqubic`: hello
<clever>
then it uses the right compiler always
<clever>
ah, $CC will fix that
<clever>
also try doing a pwd ; ls -ltrh in the buildPhase, you can likely use a shorter path
<clever>
the stdenv comes with gcc
<clever>
also, dont put gcc into the buildInputs
<clever>
oh
<clever>
and that bash script obeys the nix options
<clever>
your not calling gcc, your calling a bash script with the name `gcc`
<clever>
yeah
<clever>
but for dlopen(), you will probably want to symlink the libraries, not copy them
<clever>
no need to play with -I
<clever>
but the stdenv already adds every buildInput to the -I path for you
<clever>
yeah
<clever>
CapsAdmin: oh, you also dont even need `-I${lib.getDev assimp}`, adding assimp to the buildInputs handles that for you
<clever>
CapsAdmin: instead, do this: gcc -xc -E -P -I${lib.getDev assimp} -c ${/home/caps/goluwa/goluwa/framework/lua/build/assimp/temp.c} -o temp.p or similiar
<clever>
CapsAdmin: also, the path you have on line 7 isnt pure, gcc -xc -E -P -I${lib.getDev assimp} -c /home/caps/goluwa/goluwa/framework/lua/build/assimp/temp.c -o temp.p
<clever>
iqubic: which just unpacks $src, and runs ./configure && make && make install
<clever>
iqubic: its using the default builder for the stdenv
<clever>
the errors should also include line numbers
<clever>
you need to use ${lib.getLib assimp}
<clever>
assimp doesnt have a .lib
<clever>
find ${assimp.lib}/lib/;
<clever>
rather then all of that ==] mess
<clever>
also, you may want to switch to using json and more nix to do the generation
<clever>
and stdenv is within pkgs
<clever>
mkDerivation is part of stdenv
<clever>
nope
<clever>
can you gist the output of that generation code?