Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
raito | 89ccd6e015 | ||
jade | 7083c47d04 | ||
raito | d2b5d0a958 | ||
Jade Lovelace | a312274b08 | ||
Jade Lovelace | 5ca6ed5690 | ||
Jade Lovelace | c4615ccc7f | ||
Jade Lovelace | 9ed607358a |
10
default.nix
Normal file
10
default.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
(import
|
||||||
|
(
|
||||||
|
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
|
||||||
|
fetchTarball {
|
||||||
|
url = lock.nodes.flake-compat.locked.url or "https://git.lix.systems/lix-project/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||||
|
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
{ src = ./.; }
|
||||||
|
).defaultNix
|
25
flake.lock
25
flake.lock
|
@ -1,5 +1,20 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-compat": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1696426674,
|
||||||
|
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
|
||||||
|
"ref": "refs/heads/master",
|
||||||
|
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
|
||||||
|
"revCount": 57,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@git.lix.systems/lix-project/flake-compat"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@git.lix.systems/lix-project/flake-compat"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
|
@ -19,12 +34,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lix": {
|
"lix": {
|
||||||
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709811453,
|
"lastModified": 1709868386,
|
||||||
"narHash": "sha256-UOyTAdUAJv80w3s6rrgYB5tQjp43u5Zp2dlM94uud04=",
|
"narHash": "sha256-fokesPoYzfq492bpVxC+qc/iRDwsLcOCnq6IOjl6SK4=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "8a268359b06471b463a8f3fc46c83a1fced8ab75",
|
"rev": "eac76dbe90ad1ceade863744739246e9b6abaa90",
|
||||||
"revCount": 15077,
|
"revCount": 15086,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://gerrit.lix.systems:2022/lix"
|
"url": "ssh://gerrit.lix.systems:2022/lix"
|
||||||
},
|
},
|
||||||
|
@ -51,6 +67,7 @@
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"lix": "lix",
|
"lix": "lix",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
|
|
|
@ -6,8 +6,9 @@
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
inputs.flake-compat.url = "git+ssh://git@git.lix.systems/lix-project/flake-compat";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, lix, flake-utils }: {
|
outputs = { self, nixpkgs, lix, flake-utils, ... }: {
|
||||||
nixosModules.default = import ./module.nix { inherit lix; };
|
nixosModules.default = import ./module.nix { inherit lix; };
|
||||||
overlays.default = import ./overlay.nix { inherit lix; };
|
overlays.default = import ./overlay.nix { inherit lix; };
|
||||||
} // flake-utils.lib.eachDefaultSystem (system:
|
} // flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
|
|
@ -20,10 +20,14 @@ in
|
||||||
# FIXME: do something less scuffed
|
# FIXME: do something less scuffed
|
||||||
nix_2_18 = (prev.nixVersions.nix_2_18.override { boehmgc = boehmgc-patched; }).overrideAttrs (old: {
|
nix_2_18 = (prev.nixVersions.nix_2_18.override { boehmgc = boehmgc-patched; }).overrideAttrs (old: {
|
||||||
src = lix;
|
src = lix;
|
||||||
|
# FIXME: fake version so that nixpkgs will not try to use nix config >_>
|
||||||
version = "2.18.3-lix";
|
version = "2.18.3-lix";
|
||||||
VERSION_SUFFIX = "-lix";
|
VERSION_SUFFIX = "-lix";
|
||||||
|
|
||||||
patches = [ ];
|
patches = [ ];
|
||||||
|
# FIXME: we don't know why this was not being picked up properly when
|
||||||
|
# included in nativeCheckInputs.
|
||||||
|
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ final.git ];
|
||||||
});
|
});
|
||||||
stable = nix_2_18;
|
stable = nix_2_18;
|
||||||
nix_2_18_upstream = prev.nixVersions.nix_2_18;
|
nix_2_18_upstream = prev.nixVersions.nix_2_18;
|
||||||
|
@ -40,6 +44,10 @@ in
|
||||||
nix = final.nixVersions.nix_2_18_upstream;
|
nix = final.nixVersions.nix_2_18_upstream;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-option = prev.nixos-option.override {
|
||||||
|
nix = final.nixVersions.nix_2_18_upstream;
|
||||||
|
};
|
||||||
|
|
||||||
nix-doc = prev.nix-doc.overrideAttrs (old: {
|
nix-doc = prev.nix-doc.overrideAttrs (old: {
|
||||||
# for the purposes of nix C++ API for nix-doc, lix is Nix 2.20
|
# for the purposes of nix C++ API for nix-doc, lix is Nix 2.20
|
||||||
NIX_CFLAGS_COMPILE = [ "-DNIX_2_20_0" ];
|
NIX_CFLAGS_COMPILE = [ "-DNIX_2_20_0" ];
|
||||||
|
|
Loading…
Reference in a new issue