Commit Graph

12 Commits (2be51d0b2733bbc3ef9313f3a18ea4a89d6f122c)

Author SHA1 Message Date
Naxdy 2be51d0b27
Port away from `flake-utils` (#35675)
`flake-utils` is currently only used for outputting system-specific dev
shells. This can actually be achieved only using functionality already
present within `nixpkgs`, thus there is no need for an extra dependency.

Additionally, we move to use the `packages` and `env` args for `mkShell`
to more clearly outline what they are used for.

---

Further reading:
https://determinate.systems/blog/best-practices-for-nix-at-work/#avoid-flake-helper-libraries-if-possible

As a side note, using `with` to import large scopes is [discouraged by
official Nix
resources](https://nix.dev/guides/best-practices#with-scopes), so an
alternative approach to list installed packages could be something like
this:

```nix
packages =
  (builtins.attrValues {
    inherit (pkgs)
      # generic
      git
      git-lfs
      gnumake
      gnused
      gnutar
      gzip
      zip

      # frontend
      cairo
      pixman
      pkg-config

      # linting
      uv

      # backend
      gofumpt
      sqlite
      ;

    inherit
      # frontend
      nodejs
      pnpm

      # linting
      python3

      # backend
      go
      ;
  })
  ++ linuxOnlyInputs;
```

But I saw this as too pedantic to include in the initial PR.

Co-authored-by: 6543 <6543@obermui.de>
2025-11-04 16:28:59 +07:00
techknowlogick f9a4b2753c
nix flake update (#35639) 2025-10-12 15:59:00 +07:00
techknowlogick 5cca69517d
nix flake use go1.25 (#35288) 2025-08-16 02:47:39 +07:00
techknowlogick d9a2dfd95e
fix nix dev shell on darwin (#35278) 2025-08-14 14:39:38 +07:00
techknowlogick a301079626
nix flake update (#35085) 2025-07-15 20:43:14 +07:00
techknowlogick 6fbf0e6738
nix flake update (#34476) 2025-05-16 14:09:45 +07:00
techknowlogick d88b012525
go1.24 (#33562)
update to use go1.24

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-13 18:00:00 +07:00
6543 1342d48433
Add golang back to nix dev environment and pin v1.23 (#33275) 2025-01-17 12:25:33 +07:00
silverwind 9880c1372e
Bump CI,Flake and Snap to Node 22 (#32487)
Node 22 is LTS since 2024-10-29. Updated it everywhere.

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
2024-11-13 21:39:55 +07:00
6543 957c75bfd2
Fix update flake (#31626) 2024-07-12 16:25:54 +07:00
6543 61c97fdef1
update nix flake and add gofumpt (#31320)
nix flake maintenance
2024-06-11 08:47:13 +07:00
6543 de6f0488a6
Add nix flake for dev shell (#30967)
To try it you need **nix** installed `nix-daemon ` running and your user
has to be member of the **nix-users** group. Or use NixOS.

then by just:
```sh
nix develop -c $SHELL
```
a dedicated development environment with all needed packages will be
created.
2024-05-22 00:47:18 +07:00