chore: nix fmt
This commit is contained in:
parent
b9108c29b2
commit
1cc53fbfb6
3 changed files with 62 additions and 58 deletions
|
@ -1,5 +1,5 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
let manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
|
||||
{pkgs ? import <nixpkgs> {}}: let
|
||||
manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
|
||||
packages = with pkgs; [
|
||||
pkg-config
|
||||
libGLU
|
||||
|
@ -8,7 +8,7 @@ let manifest = (pkgs.lib.importTOML ./Cargo.toml).package;
|
|||
wayland
|
||||
];
|
||||
in
|
||||
pkgs.rustPlatform.buildRustPackage rec {
|
||||
pkgs.rustPlatform.buildRustPackage {
|
||||
pname = manifest.name;
|
||||
version = manifest.version;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
|
|
@ -3,12 +3,15 @@
|
|||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
supportedSystems = ["x86_64-linux"];
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
pkgsFor = nixpkgs.legacyPackages;
|
||||
in {
|
||||
formatter = forAllSystems (system: pkgsFor.${system}.alejandra);
|
||||
packages = forAllSystems (system: {
|
||||
default = pkgsFor.${system}.callPackage ./default.nix {};
|
||||
});
|
||||
|
@ -17,4 +20,3 @@
|
|||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ pkgs ? import <nixpkgs> { }, lib }:
|
||||
let packages = with pkgs; [
|
||||
{
|
||||
pkgs ? import <nixpkgs> {},
|
||||
lib,
|
||||
}: let
|
||||
packages = with pkgs; [
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
clippy
|
||||
|
@ -26,4 +29,3 @@ pkgs.mkShell {
|
|||
LD_LIBRARY_PATH = "${lib.makeLibraryPath packages}";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue