Browse Source

Merge branch 'wip/nix-flake' into 'main'

All the dependencies bundled as a Nix flake

See merge request World/fractal!2136
merge-requests/2136/merge
Pavel Shirshov 7 days ago
parent
commit
71141ae553
  1. 1
      .envrc
  2. 2
      .gitignore
  3. 27
      flake.lock
  4. 43
      flake.nix

1
.envrc

@ -0,0 +1 @@
use flake

2
.gitignore vendored

@ -1,3 +1,5 @@
.direnv
# Common build directory names
_build/
build/

27
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
}

43
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
];
};
};
}
Loading…
Cancel
Save