From 47e1726815f21adb7fb84dd3d8297eefd79b172f Mon Sep 17 00:00:00 2001 From: speckitor Date: Wed, 21 Jan 2026 10:40:06 +0700 Subject: [PATCH] flake.nix --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 19 ++++++++++++++----- 2 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 flake.lock diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..931e8c2 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1768773494, + "narHash": "sha256-XsM7GP3jHlephymxhDE+/TKKO1Q16phz/vQiLBGhpF4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "77ef7a29d276c6d8303aece3444d61118ef71ac2", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 2a22f19..d9e7ede 100644 --- a/flake.nix +++ b/flake.nix @@ -2,16 +2,19 @@ description = "Absinthe wayland compositor"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; }; - outputs = { self, nixpkgs }: + outputs = { self, nixpkgs, ... }: let - system = "x86_64_linux"; - pkgs = import nixpkgs { inherit system; }; + system = "x86_64-linux"; in { - devShells.${system}.default = pkgs.mkShell { + devShells."${system}".default = + let + pkgs = import nixpkgs { inherit system; }; + in + pkgs.mkShell { packages = with pkgs; [ pkg-config gnumake @@ -22,7 +25,13 @@ wlroots_0_19 pixman libxkbcommon + zsh ]; + + shellHook = '' + echo "Absinthe dev shell" + exec zsh + ''; }; }; }