zremap/flake.nix

30 lines
601 B
Nix
Raw Normal View History

2023-08-27 20:32:47 +02:00
{
description = "zremap nix flake";
2023-09-02 22:25:09 +02:00
outputs = {
self,
nixpkgs,
}: {
defaultPackage.x86_64-linux = with import nixpkgs {system = "x86_64-linux";};
2023-08-27 20:32:47 +02:00
stdenv.mkDerivation {
pname = "zremap";
version = "0.1";
src = self;
2023-09-02 22:25:09 +02:00
nativeBuildInputs = [zig.hook];
buildInputs = [libevdev];
};
devShells.x86_64-linux.default = with import nixpkgs {system = "x86_64-linux";};
mkShell {
buildInputs = [
libevdev
zig
];
shellHook = ''
echo "happy hacking!"
'';
2023-08-27 20:32:47 +02:00
};
};
}