flake.nix
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
absinthe
|
absinthe
|
||||||
.cache/
|
.cache/
|
||||||
|
result/
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
xdg-shell-protocol.h
|
xdg-shell-protocol.h
|
||||||
|
|||||||
@@ -8,13 +8,41 @@
|
|||||||
outputs = { self, nixpkgs, ... }:
|
outputs = { self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
in
|
|
||||||
{
|
|
||||||
devShells."${system}".default =
|
|
||||||
let
|
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
in
|
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; [
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user