summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 7 insertions, 5 deletions
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; {