Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language tooling #20

Open
donni-h opened this issue Apr 1, 2023 · 7 comments
Open

Language tooling #20

donni-h opened this issue Apr 1, 2023 · 7 comments

Comments

@donni-h
Copy link

donni-h commented Apr 1, 2023

Hey there!
I'd love if you could cover how to set up an IDE after a fresh installation of NixOS and then maybe show how to get started with some languages' toolkit in a nix-y way (cargo/maven/npm/go/anything you can think of). As I'm new to nix and am somewhat lost as to how to get into the development workflow as it's meant to be :)

@infinisil infinisil changed the title Setting up an IDE/Project on NixOS Language tooling Mar 25, 2024
@infinisil
Copy link
Member

We decided to focus on this topic for this weeks Nix Hour, this Tuesday at 18:00 CET! If anybody has any extra questions about this topic, either:

  • Ask them in this issue in advance with a comment
  • Join the livestream and use the chat to ask questions live

@infinisil infinisil pinned this issue Mar 25, 2024
@donni-h
Copy link
Author

donni-h commented Mar 25, 2024

We decided to focus on this topic for this weeks Nix Hour, this Tuesday at 18:00 CET! If anybody has any extra questions about this topic, either:

  • Ask them in this issue in advance with a comment
  • Join the livestream and use the chat to ask questions live

Glad to hear this is being picked up!

@con-f-use
Copy link

con-f-use commented Mar 26, 2024

A few dev-tools I find occasionally useful:

@infinisil infinisil unpinned this issue Apr 19, 2024
@infinisil
Copy link
Member

infinisil commented Jun 12, 2024

We decided to focus on this topic again for this weeks Nix Hour, this Thursday at 16:00 CEST! Let's talk about Nix tooling in general. If anybody has any extra questions about this topic, either:

  • Ask them in this issue in advance with a comment
  • Join the livestream and use the chat to ask questions live

@infinisil infinisil pinned this issue Jun 12, 2024
@tcurdt
Copy link

tcurdt commented Jun 12, 2024

I was so frustrated recently when I tried to get https://github.com/nix-community/gomod2nix working to deploy and run some go applications on NixOS (that are not ready for nixpkgs - yet). It feels like way too much work. I must be missing something.

In general it would be nice if there was a recommended boilerplate for getting the usual projects (go, rust, zig, ...) to port them easily to NixOS. Is there? I haven't found them.

As for general tooling: The whole toolchain is so convoluted that I have to keep notes. Just thinking of nix build vs nix-build and how I forgot the difference again.

@yarny2024
Copy link

yarny2024 commented Jun 13, 2024

Yarn2nix is also not well documented.
For example: signal-desktop is using the deb package instead of building from source.
While their repository has a yarn.lock, trying to build it:

{mkYarnPackage, fetchFromGitHub}:

mkYarnPackage rec {
    pname = "signalapp";
    version = "7.12.0";

    src = fetchFromGitHub {
        owner = "signalapp";
        repo = "Signal-Desktop";
        rev = "ccad9a8f0137941f6f69eadc02e0fe718709a503";
        hash = "sha256-FRVlOxqnvYl5cujio9WOD9Vs6XiLBn3KGNWRNy5vSaQ=";
        fetchSubmodules = true;
    };
}

results in an error that should? have be solved if I understand correctly.
And if we look at the lock file, those packages that yarn2nix can't find are indeed empty packages put there by the signal team.

Adding fetchYarnDeps

    offlineCache = fetchYarnDeps {
        yarnLock = src + "/yarn.lock";
        hash = "sha256-1ILcQKlHSC62HNkOj9IOhGwkjpMqrReEoiJWkanej60=";
  };

doesn't help and adding

    buildPhase = ''
    export HOME=$(mktemp -d)
    yarn build
  '';

with --offline flag removed doesn't change the This is usually caused by a missing entry in the lockfile, running Yarn without the --offline flag may help fix this issue. output either...

NixOS/nixpkgs#317842

@infinisil infinisil unpinned this issue Jun 19, 2024
@infinisil
Copy link
Member

We decided to focus on these questions in this weeks Nix Hour, this Thursday at 16:00 CEST! If anybody has any extra questions about this topic, either:

  • Ask them in this issue in advance with a comment
  • Join the livestream and use the chat to ask questions live

@infinisil infinisil pinned this issue Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants