Files
absinthe/flake.nix
T

67 lines
1.2 KiB
Nix
Raw Normal View History

2026-01-20 23:55:27 +07:00
{
description = "Absinthe wayland compositor";
inputs = {
2026-01-21 10:40:06 +07:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
2026-01-20 23:55:27 +07:00
};
2026-01-21 10:40:06 +07:00
outputs = { self, nixpkgs, ... }:
2026-01-20 23:55:27 +07:00
let
2026-01-21 10:40:06 +07:00
system = "x86_64-linux";
2026-01-21 22:43:45 +07:00
pkgs = import nixpkgs { inherit system; };
2026-01-20 23:55:27 +07:00
in
{
2026-01-21 22:43:45 +07:00
packages.${system}.default = pkgs.stdenv.mkDerivation {
pname = "absinthe";
version = "0.1";
src = ./.;
nativeBuildInputs = with pkgs; [
gcc
gnumake
pkg-config
wayland-scanner
];
buildInputs = with pkgs; [
wayland
wayland-protocols
wlroots_0_19
pixman
libxkbcommon
];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
cp absinthe $out/bin/
'';
};
devShells."${system}".default = pkgs.mkShell {
2026-01-20 23:55:27 +07:00
packages = with pkgs; [
pkg-config
gnumake
gcc
2026-01-26 12:11:35 +07:00
gdb
2026-01-20 23:55:27 +07:00
wayland
wayland-protocols
wayland-scanner
wlroots_0_19
pixman
libxkbcommon
2026-01-21 22:43:45 +07:00
fish
2026-01-20 23:55:27 +07:00
];
2026-01-21 10:40:06 +07:00
shellHook = ''
echo "Absinthe dev shell"
2026-01-21 22:43:45 +07:00
exec fish
2026-01-21 10:40:06 +07:00
'';
2026-01-20 23:55:27 +07:00
};
};
}