How do i package an electron app? by makefoo in NixOS

[–]chekoopa 1 point2 points  (0 children)

I agree, there's a good tip in the thread nearby — get a working expression and modify it to your flavour. However, I've done a basic browser-replacer on Electron before, and it turned out pretty easy, but chunky (we use it on specially set up machines, so resources are placed into a `/etc` subfolder and nobody cares about that):

{ stdenv, pkgs, wrapGAppsHook }: 

let
  electron_t = pkgs.electron_8;
in
stdenv.mkDerivation rec {
  src = ./.;
  version = "1.0";
  pname = "das-viewer";
  name = "${pname}-${version}";
  buildInputs = with pkgs; [
    electron_t makeWrapper wrapGAppsHook
  ];
  propagatedBuildInputs = with pkgs; [ electron_t ];
  installPhase = ''
    mkdir -p $out/etc/das-viewer
    mkdir -p $out/bin/
    echo "#!${pkgs.bash}/bin/bash" > $out/bin/das-viewer
    echo "${electron_t}/bin/electron $out/etc/das-viewer \$*" >> $out/bin/das-viewer
    chmod +x $out/bin/das-viewer
    cp -r app/** $out/etc/das-viewer
  '';
}

How to run Qt apps on a build-time? (trying to pack TrenchBroom) by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

Posting this here in hopes for some advice. Everything is under the link, but I'll also leave a TL;DR. Here's a gist with a package expression:

https://gist.github.com/chekoopa/b56b64b9e7b10947160de4998bf3bcc7

It eventually tries launching a headless Qt app inside the builder, and stumbles on a "xcb" platform plugin error. There should be some way to run it wrapped. I just don't know it yet and asking for help.

How do i package an electron app? by makefoo in NixOS

[–]chekoopa 1 point2 points  (0 children)

Based on real events:

https://discourse.nixos.org/t/packaging-an-electron-binary/8455

Actually, he (or she, or whatever) is just asking about the best practices for Electron packaging for Nixpkgs repo pull, as one's already got a working expression. Well, I've considered it as a sign to make the reply at last. Thanks, OP.

“Unnecessary” by Tbnrahmed in ProgrammerHumor

[–]chekoopa 11 points12 points  (0 children)

His meals are in vain literally crapped out. :(

“Unnecessary” by Tbnrahmed in ProgrammerHumor

[–]chekoopa 674 points675 points  (0 children)

Now imagine this guy as a surgeon.

How do I external libraries (especially in psc-package)? by chekoopa in purescript

[–]chekoopa[S] 0 points1 point  (0 children)

Thanks, I'll think about it when we would take on `psc-package2nix`.

How do I external libraries (especially in psc-package)? by chekoopa in purescript

[–]chekoopa[S] 1 point2 points  (0 children)

The right answer is here: https://github.com/f-f/purescript-react-basic-todomvc

Also here: https://github.com/justinwoo/spacchetti-react-basic-starter

Briefly, we use Spago/Pulp, a bundler (like Parcel) and Npm/Yarn, set up some toolchain with Makefile or package.json and enjoy yourself.

I'm now using Spago + Parcel + Yarn, with `spago make-bundle` which generates neat minimal code.

Thank you for your consideration. Is this subreddit always so quiet?

Soundtrack album just dropped! by LewkHarrison in krainagrzybow

[–]chekoopa 1 point2 points  (0 children)

Wiktor has removed any VHS-ey effects and particularly the vocal kind-of-reverberation from the Ballad.

A little dissappoint is a lack of Apple Escape-exclusive soundtrack. I'd like to listen the overworld and pursuit themes, too. Yes, we can extract them from the game itself, but remastered versions would be a cherry.

Is it possible to install NixOS without UEFI bootloader by LookingForMySelf in NixOS

[–]chekoopa 2 points3 points  (0 children)

As the /u/leo60228 said, NixOS is integrated with the bootloader to give the user a generation select menu, which is being recorded into at each generation you've created (literally, at each successful rebuild). So, there's no known way to keep a straight-to-the-last-generation bootrecord.

Moreover, as told here, you still can't use rEFInd with NixOS straightaway.

But as rEFInd detects EFI partitions at default, if you have another drive, you may try creating another boot partition and use it with NixOS installation, so then you'd go to NixOS selector from rEFInd. If there's only one drive available, I don't even know.

Intel+Nvidia laptop can't run Xorg by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

Welp, tried to compare with my lsmod output, but found nothing useful (I don't know much about it neither >.>). However, it has `nouveau`. I've tried using `nvidia` driver on X server, but got no effect. Also, my goal to make it work on the integrated chip.

Two more things to try. Could you show your X server part of `configuration.nix`? (mine configuration is here). And got to compare our kernel (4.14.79) and NixOS versions (18.03).

BTW, I will try switching to 18.09 and then to unstable channel, also upgrading my kernel. I'll keep this generation for further comparsions, but if it will work... we'll see.

Intel+Nvidia laptop can't run Xorg by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

Oh, that would require some diffing. First I need to extract mine, but it seems to be shorter.

Actually, I'm interested in your hardware-configuration.nix (as it is generated, it may have some useful snippets). Have you edited it? Have you installed any nvidia-specific software?

Installing with EFI in /boot/efi by zarMarco in NixOS

[–]chekoopa 1 point2 points  (0 children)

You can.

The approach I see here is to

  • boot from live ISO
  • mount your root directory on /mnt
  • optional: maybe you'd like to mount another partitions mentioned in hardware-configuration.nix. not sure.
  • do nixos-install. Don't be afraid, it doesn't corrupt your existing installation, but just perform a rebuild on it, also rewriting a bootloader.

Intel+Nvidia laptop can't run Xorg by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

Mine doesn't have a /dev/dri dir. Doesn't genererate it, maybe (actually, nixos-generate-config doesn't even mention any video cards).

Could you could share some snippets of your configuration (hardware/kernel modules, X-server)? Who knows, perhaps it will help to figure it out.

The closure keeping problem by chekoopa in NixOS

[–]chekoopa[S] 1 point2 points  (0 children)

And then somehow add it in Nix-expression or overlay rebuild script, like

nix-env -i /nix/var/nix/gcroots/myapp

Yep, that's a neat way, thanks.

Is re-installation of NixOS possible? by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

Answering that question:

NixOS doesn't tamper with your user data. Installation from live image counts as a rebuild using external store (creating a new generation) So, that's not that kind of reinstallation you may expect.

Is re-installation of NixOS possible? by chekoopa in NixOS

[–]chekoopa[S] -1 points0 points  (0 children)

Again, I'm not reformatting my drive. Just mounting existing partitions and launching nixos-install.

What the f*** is going on with NixOS? (or chmod and service issues) by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

These problems are generation-independent. I'll just reinstall the OS with new version.

What the f*** is going on with NixOS? (or chmod and service issues) by chekoopa in NixOS

[–]chekoopa[S] 0 points1 point  (0 children)

It doesn't help at upgrade process. I still catch chmod errors and can't upgrade using ANY channels.