programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
ruffsl to Nix / NixOSEnglish · 2 months ago

Announcing Nix-manipulator (Nima): structured edits for Nix that keep formatting - NixOS Discourse

discourse.nixos.org

external-link
message-square
4
link
fedilink
19
external-link

Announcing Nix-manipulator (Nima): structured edits for Nix that keep formatting - NixOS Discourse

discourse.nixos.org

ruffsl to Nix / NixOSEnglish · 2 months ago
message-square
4
link
fedilink
Announcing Nix-manipulator (Nima): structured edits for Nix that keep formatting
discourse.nixos.org
external-link
(I do not have permissions to post in Announcements, so I am sharing this here. Moderators are welcome to move it.) nix-manipulator is a Python library and CLI for parsing, transforming, and reconstructing Nix while preserving comments and layout, in line with RFC 166. It is built on Tree-sitter using the nix-community grammar. Motivations Nix is often described as “JSON on steroids”. I like this definition but did not find an easy way to update the values in a Nix file without doing string re...
  • balsoft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 months ago

    What I’m really excited about is automatically editing Nixpkgs meta attrs, e.g. to implement https://github.com/NixOS/rfcs/blob/master/rfcs/0180-broken-package-removal.md

Nix / NixOS

nix

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Main links

  • website
  • wiki
  • matrix

Videos

  • Linux Experiment about NixOS
  • Chris Titus Tech
  • Mental Outlaw
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 3 users / day
  • 29 users / week
  • 197 users / month
  • 585 users / 6 months
  • 434 local subscribers
  • 2.49K subscribers
  • 297 Posts
  • 1.21K Comments
  • Modlog
  • mods:
  • Erlingur
  • ballmerpeaking
  • WhiteBlackGoose
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org