Skip to content

Commit

Permalink
fix: using package in a flake input
Browse files Browse the repository at this point in the history
  • Loading branch information
ahoneybun committed Sep 12, 2024
1 parent 1549069 commit cb72de4
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,23 @@
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = naersk.lib."${system}";
cargo = pkgs.cargo;
in {
defaultPackage = naersk-lib.buildPackage {
name = "system76-keyboard-configurator";
version = "1.3.0";
src = ./.;
buildInputs =
(with pkgs; [ pkg-config rustc cargo hidapi glib gtk3 ]);
in
{
packages = rec {
default = system76-keyboard-configurator;

system76-keyboard-configurator = naersk-lib.buildPackage {
name = "system76-keyboard-configurator";
version = "1.3.0";
src = ./.;
buildInputs = with pkgs; [ pkg-config rustc cargo hidapi glib gtk3 ];
};
};
devShell = pkgs.mkShell {

devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ pkg-config rustc cargo hidapi glib gtk3 ];
};

formatter = nixpkgs.legacyPackages."${system}".nixfmt;
});
}

0 comments on commit cb72de4

Please sign in to comment.