Skip to content

Commit

Permalink
chore: nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Apr 18, 2024
1 parent 265ff4a commit 3cd219b
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
target/
mods/
./*.zip
*.lock
Cargo.lock
61 changes: 61 additions & 0 deletions flake.lock

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

24 changes: 24 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
description = "Library for working with Northstar mods";

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

outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
formatter = pkgs.alejandra;

devShells.default = pkgs.mkShell {
nativeBuildInputs = [pkgs.rustc];
packages = with pkgs; [cargo git-cliff];
};
});
}

0 comments on commit 3cd219b

Please sign in to comment.