Commit 8116aa53 authored by Rasmus Thomsen's avatar Rasmus Thomsen
Browse files

chore(nix): add shell.nix for development w/ nix

parent 614a50bf
Pipeline #337561 failed with stages
in 19 minutes and 22 seconds
......@@ -10,6 +10,8 @@
"titleBar.activeForeground": "#ffffff",
"titleBar.inactiveBackground": "#f0484e",
"titleBar.inactiveForeground": "#cccccc"
}
},
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix",
"editor.formatOnSave": true
}
}
let
pkgs = import (fetchTarball("channel:nixpkgs-unstable")) {};
mesonNew = pkgs.meson.overrideAttrs (oldAttrs: rec {
pname = "meson";
version = "0.60.2";
src = pkgs.fetchFromGitHub{
owner = "mesonbuild";
repo = "meson";
rev = "0.60.2";
sha256 = "1z68zivpn1c6x34a037ibbp3jzxrhl5a8xz8ihwqc6k6i6nxpq3p";
};
patches = [ ];
});
in pkgs.mkShell {
buildInputs = [
pkgs.cargo
pkgs.rustc
pkgs.rustfmt
pkgs.gtk4.dev
pkgs.tracker.dev
pkgs.libadwaita.dev
pkgs.wayland.dev
pkgs.pkg-config
pkgs.ninja
mesonNew
];
# Certain Rust tools won't work without this
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment