Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungBreeze TTS 2 vs ElevenLabs: Open Source TTS Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungAgentic AI vs Generative AI: The 2026 Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungI made my agent prove every quote against the source document(23.09.2026 um 05:45 Uhr)
Sichere Programmierung8mb.video Alternative: Skip the Line, Skip the Upsell(23.09.2026 um 05:47 Uhr)
Sichere ProgrammierungBuilding a GTA 6 JSON API for entities and current status(23.09.2026 um 05:52 Uhr)
Sichere ProgrammierungEvery filter needs a documented exception(23.09.2026 um 06:01 Uhr)
Sichere ProgrammierungBreeze TTS 2 vs ElevenLabs: Open Source TTS Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungAgentic AI vs Generative AI: The 2026 Verdict(23.09.2026 um 05:44 Uhr)
Sichere ProgrammierungI made my agent prove every quote against the source document(23.09.2026 um 05:45 Uhr)
Sichere Programmierung8mb.video Alternative: Skip the Line, Skip the Upsell(23.09.2026 um 05:47 Uhr)
Sichere ProgrammierungBuilding a GTA 6 JSON API for entities and current status(23.09.2026 um 05:52 Uhr)
Sichere ProgrammierungEvery filter needs a documented exception(23.09.2026 um 06:01 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Hasura CLI on NixOS: A Working Solution

This post comes after an exciting discovery of a solution to a problem I and my team have been facing for a while: Getting Hasura CLI work on NixOS like any other program. Problem NixOS has its own way of managing packages and…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

This post comes after an exciting discovery of a solution to a problem I and my team have been facing for a while: Getting Hasura CLI work on NixOS like any other program.






Problem



NixOS has its own way of managing packages and dependencies. Unlike a typical Linux distribution, programs are installed in isolated environments called Nix profiles. This is great for reproducibility and isolation, but it can be a bit challenging when you want to use a program that is not available in the Nix package set.



Hasura CLI proved to be one of these tricky programs due to its extensions architecture or implementation.



Simply, <nixpkgs> has a very outdated package. Building a recent Hasura CLI from source is fine, but users get runtime errors due to that the plugin system does not work on NixOS.



I could not get to the source of the problem, but I found a workaround after trying many options, including community members\' hacks.






Interim Solution



Two solutions worked for us although the first one was simply not practical to use:




  1. Use Hasura CLI from within a Docker container: This caused more problems then it solved.

  2. Use buildFHSUserEnv: This solution worked for me and my team for quite some time, but it has its own issues such as a half-broken Nix shell where many commands do not work.






A Working Solution



I discovered a solution by @adamgoose as a comment on a related GitHub issue. It made sense and I gave it a try.



It was simple and it worked! I then decided to share it as a Nix function on GitHub:



https://github.com/vst/hasura-cli-nix



You can try it in a Nix shell:




{ ... }:

let
pkgs = import <nixpkgs> { };
hasura-cli-nix = pkgs.fetchFromGitHub {
owner = "vst";
repo = "hasura-cli-nix";
rev = "98e796e57a37ffe98233cb174e439e3e7657166d";
sha256 = "sha256-SiOSip48jk1CbtcMmN79+ca6A3slS9XGffhZFTLoWYU=";
};
hasura-cli = (pkgs.callPackage hasura-cli-nix { }).cli;
in
pkgs.mkShell {
buildInputs = [
hasura-cli
];
}






... and:




$ nix-shell --run "hasura metadata diff"









Wrap-Up



Hasura is a great tool. I was worried about a few things such as huge RAM consumption, excessive focus on new features and functions despite many outstanding issues, long time rewrite of the server in Rust, etc...



None of them were deal-breakers for me. But our Hasura CLI experience was quite concerning and frustrating.



There is not a single program on my NixOS system that does not work as expected except Hasura CLI. This exception is now resolved.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Hasura CLI on NixOS: A Working Solution

Thematisch verwandte Begriffe: Hasura, NixOS, Working, Solution · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-18163 | IBM Financial Transaction Manager (FTM) for RedHat OpenShift could allow…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick