Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# Compilation artifacts
/target
/result

# Profiling
perf.data*
Expand Down
13 changes: 13 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
rustPlatform,
fontconfig,
libxkbcommon,
pkg-config,
}:
rustPlatform.buildRustPackage {
src = ./.;
name = "kickoff";
buildInputs = [fontconfig libxkbcommon];
nativeBuildInputs = [pkg-config];
cargoLock.lockFile = ./Cargo.lock;
}
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
description = "A very basic flake";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};

outputs = {
self,
nixpkgs,
}: let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
in {
devShells."x86_64-linux".default = pkgs.mkShell {
buildInput = with pkgs; [
cargo
rustc
rustfmt
clippy
rust-analyzer
fontconfig
libxkbcommon
];
env.RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
packages.x86_64-linux.default = pkgs.callPackage ./default.nix {};
};
}
1 change: 1 addition & 0 deletions result
Loading