flake.nix

This commit is contained in:
2026-01-21 22:43:45 +07:00
parent 47e1726815
commit d66eb26ab1
3 changed files with 37 additions and 7 deletions
+1
View File
@@ -1,4 +1,5 @@
absinthe absinthe
.cache/ .cache/
result/
compile_commands.json compile_commands.json
xdg-shell-protocol.h xdg-shell-protocol.h
+35 -7
View File
@@ -8,13 +8,41 @@
outputs = { self, nixpkgs, ... }: outputs = { self, nixpkgs, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in in
{ {
devShells."${system}".default = packages.${system}.default = pkgs.stdenv.mkDerivation {
let pname = "absinthe";
pkgs = import nixpkgs { inherit system; }; version = "0.1";
in
pkgs.mkShell { 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 {
packages = with pkgs; [ packages = with pkgs; [
pkg-config pkg-config
gnumake gnumake
@@ -25,12 +53,12 @@
wlroots_0_19 wlroots_0_19
pixman pixman
libxkbcommon libxkbcommon
zsh fish
]; ];
shellHook = '' shellHook = ''
echo "Absinthe dev shell" echo "Absinthe dev shell"
exec zsh exec fish
''; '';
}; };
}; };
Symlink
+1
View File
@@ -0,0 +1 @@
/nix/store/4f2jgjcrdyyrcajbn286czd73y7vlk8z-absinthe-0.1