flake: format and update zig
This commit is contained in:
parent
8a7923bd4e
commit
79a35cf42e
24
flake.nix
24
flake.nix
@ -1,25 +1,35 @@
|
|||||||
{
|
{
|
||||||
description = "zremap nix flake";
|
description = "zremap nix flake";
|
||||||
|
|
||||||
outputs = {
|
outputs =
|
||||||
|
{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
}: {
|
}:
|
||||||
defaultPackage.x86_64-linux = with import nixpkgs {system = "x86_64-linux";};
|
{
|
||||||
|
defaultPackage.x86_64-linux =
|
||||||
|
with import nixpkgs { system = "x86_64-linux"; };
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "zremap";
|
pname = "zremap";
|
||||||
version = "0.2";
|
version = "0.2";
|
||||||
src = self;
|
src = self;
|
||||||
nativeBuildInputs = [zig.hook];
|
nativeBuildInputs = [ zig.hook ];
|
||||||
buildInputs = [libevdev pkg-config];
|
buildInputs = [
|
||||||
|
libevdev
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
NIX_CFLAGS_COMPILE="-static -isystem $(pkg-config --variable=includedir libevdev)/libevdev-1.0 $NIX_CFLAGS_COMPILE"
|
NIX_CFLAGS_COMPILE="-static -isystem $(pkg-config --variable=includedir libevdev)/libevdev-1.0 $NIX_CFLAGS_COMPILE"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells.x86_64-linux.default = with import nixpkgs {system = "x86_64-linux";};
|
devShells.x86_64-linux.default =
|
||||||
|
with import nixpkgs { system = "x86_64-linux"; };
|
||||||
mkShell {
|
mkShell {
|
||||||
nativeBuildInputs = [zig_0_12 lldb];
|
nativeBuildInputs = [
|
||||||
|
zig
|
||||||
|
lldb
|
||||||
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libevdev
|
libevdev
|
||||||
pkg-config
|
pkg-config
|
||||||
|
Loading…
Reference in New Issue
Block a user