commit aa4a39a043ac3cff1733f3637851caf449a1b047
parent c8a112bbd143652b80839859adeec2d0e7f91b14
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 27 Jun 2024 14:07:53 +0200
parent c8a112bbd143652b80839859adeec2d0e7f91b14
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 27 Jun 2024 14:07:53 +0200
flake.nix: update to nixpkgs 24.05
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/flake.lock b/flake.lock @@ -17,16 +17,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1670543317, - "narHash": "sha256-4mMR56rtxKr+Gwz399jFr4i76SQZxsLWxxyfQlPXRm0=", + "lastModified": 1719426051, + "narHash": "sha256-yJL9VYQhaRM7xs0M867ZFxwaONB9T2Q4LnGo1WovuR4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "7a6a010c3a1d00f8470a5ca888f2f927f1860a19", + "rev": "89c49874fb15f4124bf71ca5f42a04f2ee5825fd", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixos-22.11", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" }
diff --git a/flake.nix b/flake.nix @@ -3,7 +3,7 @@ inputs = { flake-utils.url = "github:numtide/flake-utils"; - nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; }; outputs = { self, nixpkgs, flake-utils }: { @@ -19,13 +19,14 @@ sha256 = "1by0xyqz754dny19lf8rpkg42passnj0rs6rk3jr763m1zr803mc"; }; - in final.nimPackages.buildNimPackage { + in final.buildNimPackage { name = "solax2mqtt"; src = self; - buildInputs = [ nmqtt ]; + nimFlags = [ + "--path:${nmqtt}" + ]; - nimBinOnly = true; nimRelease = true; } ); @@ -41,7 +42,7 @@ in rec { - packages.default = pkgs.solax2mqtt; + packages.default = pkgs.solax2mqtt; packages.solax2mqtt = pkgs.solax2mqtt; apps.default = {