callPackage Lix instead of overriding Nixpkgs' Nix #17

Merged
qyriad merged 1 commit from qyriad/nixos-module:call-package into main 2024-04-22 03:57:50 +00:00
Owner

This is hopefully more robust, and plays nicer with the soon-to-be switch to Meson

This is hopefully more robust, and plays nicer with the soon-to-be switch to Meson
qyriad added 1 commit 2024-04-18 20:58:08 +00:00
qyriad requested review from jade 2024-04-18 20:58:14 +00:00
lunaphied approved these changes 2024-04-21 03:27:30 +00:00
jade reviewed 2024-04-21 04:14:47 +00:00
@ -20,0 +22,4 @@
}).overrideAttrs {
# Note: load-bearing version override. Nixpkgs does version detection to determine
# what commands and whatnot we support, so tell Nixpkgs that we're 2.18 (ish).
version = "2.18.3-lix${versionSuffix}";
Owner

are you sure you don't need VERSION_SUFFIX in here to make the thing actually do the right thing? i think the one here might not have correct nix --version output (in particular, would not have the date) without that.

are you sure you don't need VERSION_SUFFIX in here to make the thing actually do the right thing? i think the one here might not have correct nix --version output (in particular, would not have the date) without that.
Owner

Sorry I wasn't paying close enough attention, you definitely have to override VERSION_SUFFIX still since it's set by the same thing that we're overriding for version here

Sorry I wasn't paying close enough attention, you definitely have to override `VERSION_SUFFIX` still since it's set by the same thing that we're overriding for `version` here
Author
Owner

VERSION_SUFFIX is set to versionSuffix in Lix:

VERSION_SUFFIX = versionSuffix;

On our system with this module, this is output of nix --version:

nix (Lix, like Nix) 2.90.0-lixpre20240418-7e79232
`VERSION_SUFFIX` is set to `versionSuffix` in Lix: https://git.lix.systems/lix-project/lix/src/commit/111db8b38fd8350d92d72fa17fd3d9e8ef5a0e09/package.nix#L169 On our system with this module, this is output of `nix --version`: ``` nix (Lix, like Nix) 2.90.0-lixpre20240418-7e79232 ```
jade marked this conversation as resolved
jade approved these changes 2024-04-22 03:15:46 +00:00
jade left a comment
Owner

lgtm then, if we have confirmed it works properly

lgtm then, if we have confirmed it works properly
qyriad merged commit 71f268f215 into main 2024-04-22 03:57:50 +00:00
Author
Owner

Hopefully nothing should blow up 😅

Hopefully nothing should blow up 😅
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/nixos-module#17
No description provided.