From e2b9013d38f64f6e0f53841f32f9e000b74e220f Mon Sep 17 00:00:00 2001 From: Aylur Date: Wed, 11 Sep 2024 21:48:26 +0000 Subject: nix: touchups --- flake.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 8ff60e7..f2ae8cf 100644 --- a/flake.nix +++ b/flake.nix @@ -8,8 +8,8 @@ inherit (builtins) replaceStrings readFile; version = replaceStrings ["\n"] [""] (readFile ./version); - system = "x86_64-linux"; - pkgs = import nixpkgs {inherit system;}; + system = "x86_64-linux"; # TODO: other architectures + pkgs = nixpkgs.legacyPackages.${system}; mkPkg = name: src: inputs: pkgs.stdenv.mkDerivation { @@ -33,9 +33,11 @@ inherit self pkgs; }; - mkLuaPackage = import ./nix/lua.nix { - inherit pkgs; - astal = self; + lib = { + mkLuaPackage = import ./nix/lua.nix { + inherit pkgs; + astal = self; + }; }; packages.${system} = with pkgs; { -- cgit v1.2.3