From 41fed4bae3e64bb94c032184eebeeb5b204b8aa3 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Sat, 10 Jan 2026 08:59:36 +0530 Subject: [PATCH] feat: nix flake --- flake.nix | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 7b8682a..e7df2b3 100644 --- a/flake.nix +++ b/flake.nix @@ -1,8 +1,9 @@ { - description = "flake for github:lavafroth/shush"; + description = "flake for github:lavafroth/lollipop"; outputs = { + self, nixpkgs, ... }: @@ -12,6 +13,15 @@ nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system}); in { + packages = forAllSystems (pkgs: { + default = pkgs.rustPlatform.buildRustPackage { + pname = "lollipop"; + version = "1.0.0"; + + src = ./.; + cargoLock.lockFile = ./Cargo.lock; + }; + }); devShells = forAllSystems (pkgs: { @@ -19,14 +29,12 @@ buildInputs = with pkgs; [ stdenv.cc.cc.lib ]; - LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [ - wayland-protocols - wayland - libxkbcommon - libGL - ]; }; }); + + overlays.default = final: prev: { + lollipop = self.packages.${final.system}.default; + }; }; }