Use flake.nix instead
Code Quality / quality-checks (push) Has been cancelled

This commit is contained in:
2026-03-26 17:29:03 +01:00
parent 1cc69bcc61
commit c352a7cb16
3 changed files with 51 additions and 27 deletions
+24 -2
View File
@@ -6,9 +6,31 @@
};
outputs = { self, nixpkgs }: let
system = builtins.currentSystem;
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in {
packages.${system}.rustlock = pkgs.callPackage ./default.nix {};
packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
pname = "rustlock";
version = "0.1.0";
src = ./.;
cargoLock = { lockFile = ./Cargo.lock; };
buildInputs = with pkgs; [
cairo
pam
gdk-pixbuf
librsvg
pango
libxkbcommon
dbus
];
nativeBuildInputs = [
pkgs.pkg-config
pkgs.rustPlatform.bindgenHook
pkgs.rustfmt
pkgs.clippy
];
};
};
}