26 lines
801 B
Nix
26 lines
801 B
Nix
{
|
|
description = "Small binary rewriting events from kobo libra colour to be used as a desktop libinput device";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
packages.${system} =
|
|
{
|
|
kobo-color-inputdev = pkgs.callPackage ./default.nix { };
|
|
|
|
# Cross compile to run on the kobo itself
|
|
cross.armv7l-unknown-linux-musleabihf.kobo-color-inputdev =
|
|
pkgs.pkgsCross.armv7l-hf-multiplatform.pkgsStatic.callPackage ./default.nix { };
|
|
|
|
default = self.packages.${system}.kobo-color-inputdev;
|
|
};
|
|
devShells.${system}.default = import ./shell.nix { inherit pkgs; };
|
|
};
|
|
}
|