forked from lix-project/nixos-module
Compare commits
24 commits
Author | SHA1 | Date | |
---|---|---|---|
Ilya K | f425f32a62 | ||
jade | 93ce1e3f5d | ||
Qyriad | 1b35b90445 | ||
jade | 9515bc250a | ||
Lunaphied | 54cc0918d4 | ||
jade | 2714f7ac02 | ||
jade | 48055468d5 | ||
jade | a428fa24ae | ||
jade | 9c691a4185 | ||
hexa | 600fc154e4 | ||
eldritch horrors | 280c404856 | ||
eldritch horrors | eabed5a04f | ||
jade | 5d64b01d02 | ||
hexa | 7afd8fbb0d | ||
jade | 5d2b325d3a | ||
jade | 1062d3c1ff | ||
jade | f8b5d0bc9c | ||
Qyriad | adbbecb518 | ||
Emily Trau | ebdf6e66ae | ||
jade | 30a7b8f7c8 | ||
jade | 41990c5d80 | ||
jade | f173ccc0aa | ||
jade | 4d09a927b0 | ||
jade | 7278990b5a |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
result
|
||||||
|
result-*
|
19
LICENSE
Normal file
19
LICENSE
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice (including the next
|
||||||
|
paragraph) shall be included in all copies or substantial portions of the
|
||||||
|
Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
|
||||||
|
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
||||||
|
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
24
flake.lock
24
flake.lock
|
@ -33,14 +33,29 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flakey-profile": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1711325813,
|
||||||
|
"narHash": "sha256-ygJR5VikyCfK0CUJHboOKJVr6s9HQ1RXcvFEFnv+KIk=",
|
||||||
|
"owner": "lf-",
|
||||||
|
"repo": "flakey-profile",
|
||||||
|
"rev": "3b32c4a71f89b874fe0be2dc125eacb9c3473204",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "lf-",
|
||||||
|
"repo": "flakey-profile",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"lix": {
|
"lix": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709967830,
|
"lastModified": 1712180067,
|
||||||
"narHash": "sha256-4AwZcUa6crNSSbsIVr7dMlk851ElnAN5BDi4NH6UEKc=",
|
"narHash": "sha256-XU32CuKt0wXB8Ws5P3pZFMlYIMVx9om1GycYpITAwZ0=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "896e525681bbf696c330af4e51c5e161d3818350",
|
"rev": "89c31953c58d8089c85ae7ab43a5c59bb0f9f69b",
|
||||||
"revCount": 15092,
|
"revCount": 15311,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://git@git.lix.systems/lix-project/lix.git"
|
"url": "ssh://git@git.lix.systems/lix-project/lix.git"
|
||||||
},
|
},
|
||||||
|
@ -69,6 +84,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
"flakey-profile": "flakey-profile",
|
||||||
"lix": "lix",
|
"lix": "lix",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -6,10 +6,14 @@
|
||||||
};
|
};
|
||||||
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";
|
inputs.flake-compat.url = "git+ssh://git@git.lix.systems/lix-project/flake-compat";
|
||||||
|
inputs.flakey-profile.url = "github:lf-/flakey-profile";
|
||||||
|
|
||||||
outputs = { self, nixpkgs, lix, flake-utils, ... }: {
|
outputs = inputs@{ self, nixpkgs, lix, flake-utils, flakey-profile, ... }:
|
||||||
nixosModules.default = import ./module.nix { inherit lix; };
|
let versionSuffix = "pre${builtins.substring 0 8 lix.lastModifiedDate}-${lix.shortRev}";
|
||||||
overlays.default = import ./overlay.nix { inherit lix; };
|
in {
|
||||||
|
inherit inputs;
|
||||||
|
nixosModules.default = import ./module.nix { inherit lix versionSuffix; };
|
||||||
|
overlays.default = import ./overlay.nix { inherit lix versionSuffix; };
|
||||||
} // flake-utils.lib.eachDefaultSystem (system:
|
} // flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
|
@ -21,5 +25,7 @@
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
packages.default = pkgs.nixVersions.nix_2_18;
|
packages.default = pkgs.nixVersions.nix_2_18;
|
||||||
packages.nix-doc = pkgs.nix-doc;
|
packages.nix-doc = pkgs.nix-doc;
|
||||||
|
|
||||||
|
packages.system-profile = import ./system-profile.nix { inherit pkgs flakey-profile; };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lix }:
|
{ lix, versionSuffix ? "" }:
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [ (import ./overlay.nix { inherit lix; }) ];
|
nixpkgs.overlays = [ (import ./overlay.nix { inherit lix versionSuffix; }) ];
|
||||||
}
|
}
|
||||||
|
|
32
overlay.nix
32
overlay.nix
|
@ -1,4 +1,4 @@
|
||||||
{ lix }:
|
{ lix, versionSuffix ? "" }:
|
||||||
final: prev:
|
final: prev:
|
||||||
let
|
let
|
||||||
boehmgc-patched = ((final.boehmgc.override {
|
boehmgc-patched = ((final.boehmgc.override {
|
||||||
|
@ -10,10 +10,13 @@ let
|
||||||
(prev.path + "/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch")
|
(prev.path + "/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch")
|
||||||
|
|
||||||
# https://github.com/ivmai/bdwgc/pull/586
|
# https://github.com/ivmai/bdwgc/pull/586
|
||||||
(lix + "/boehmgc-traceable_allocator-public.diff")
|
(builtins.path { path = lix + "/boehmgc-traceable_allocator-public.diff"; name = "boehmgc-traceable_allocator-public.patch"; })
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# Internal nix-doc used by Lix.
|
||||||
|
lix-doc = final.callPackage (lix + "/lix-doc/package.nix") { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixVersions = prev.nixVersions // rec {
|
nixVersions = prev.nixVersions // rec {
|
||||||
|
@ -21,13 +24,24 @@ in
|
||||||
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 >_>
|
# FIXME: fake version so that nixpkgs will not try to use nix config >_>
|
||||||
version = "2.18.3-lix";
|
version = "2.18.3-lix${versionSuffix}";
|
||||||
VERSION_SUFFIX = "-lix";
|
VERSION_SUFFIX = "-lix${versionSuffix}";
|
||||||
|
|
||||||
|
# We only include CMake so that Meson can locate toml11, which only ships CMake dependency metadata.
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
patches = [ ];
|
patches = [ ];
|
||||||
|
buildInputs = old.buildInputs or [ ] ++ [
|
||||||
|
final.toml11
|
||||||
|
lix-doc
|
||||||
|
];
|
||||||
|
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [
|
||||||
|
final.buildPackages.cmake
|
||||||
# FIXME: we don't know why this was not being picked up properly when
|
# FIXME: we don't know why this was not being picked up properly when
|
||||||
# included in nativeCheckInputs.
|
# included in nativeCheckInputs.
|
||||||
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ final.git ];
|
final.buildPackages.git
|
||||||
|
final.buildPackages.python3
|
||||||
|
];
|
||||||
});
|
});
|
||||||
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;
|
||||||
|
@ -49,4 +63,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-doc = prev.callPackage ./nix-doc/package.nix { withPlugin = false; };
|
nix-doc = prev.callPackage ./nix-doc/package.nix { withPlugin = false; };
|
||||||
|
|
||||||
|
nix-init = prev.nix-init.override {
|
||||||
|
nix = final.nixVersions.nix_2_18_upstream;
|
||||||
|
};
|
||||||
|
|
||||||
|
nurl = prev.nurl.override {
|
||||||
|
nix = final.nixVersions.nix_2_18_upstream;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
10
system-profile.nix
Normal file
10
system-profile.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, flakey-profile }:
|
||||||
|
flakey-profile.lib.mkProfile {
|
||||||
|
inherit pkgs;
|
||||||
|
paths = with pkgs; [
|
||||||
|
cacert
|
||||||
|
nix
|
||||||
|
];
|
||||||
|
name = "system-profile";
|
||||||
|
extraSwitchArgs = [ "--profile" "/nix/var/nix/profiles/default" ];
|
||||||
|
}
|
Loading…
Reference in a new issue