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
.cache/
result/
compile_commands.json
xdg-shell-protocol.h
+35 -7
View File
@@ -8,13 +8,41 @@
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells."${system}".default =
let
pkgs = import nixpkgs { inherit system; };
in
pkgs.mkShell {
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 {
packages = with pkgs; [
pkg-config
gnumake
@@ -25,12 +53,12 @@
wlroots_0_19
pixman
libxkbcommon
zsh
fish
];
shellHook = ''
echo "Absinthe dev shell"
exec zsh
exec fish
'';
};
};
Symlink
+1
View File
@@ -0,0 +1 @@
/nix/store/4f2jgjcrdyyrcajbn286czd73y7vlk8z-absinthe-0.1