From 693040973f29f4d04d0b4dc959d5d4a5f98a94c6 Mon Sep 17 00:00:00 2001 From: Pavel Shirshov Date: Mon, 19 Jan 2026 23:35:47 +0000 Subject: [PATCH] flake env --- .envrc | 1 + .gitignore | 2 ++ flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+) create mode 100644 .envrc create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..3550a30f --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 898e24dd..5816e9ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.direnv + # Common build directory names _build/ build/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 00000000..3fcda0b5 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1768564909, + "narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 00000000..d7f4de17 --- /dev/null +++ b/flake.nix @@ -0,0 +1,43 @@ +{ + description = "Fractal development environment"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs }: + let + system = "x86_64-linux"; + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.${system}.default = pkgs.mkShell { + packages = with pkgs; [ + appstream + blueprint-compiler + cargo + clippy + dart-sass + desktop-file-utils + gettext + glib + gst_all_1.gstreamer + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-bad + gtk4 + libadwaita + libglycin + libshumate + libwebp + meson + ninja + openssl + pkg-config + rustc + rustfmt + sqlite + gtksourceview5 + ]; + }; + }; +}