mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-10-18 19:10:34 +08:00
flake: Rewrite and update to NixOS 25.11
The flake is quite complex, using bundix to capture Ruby dependencies with Nix and a custom Ruby via an overlay. This is nice, but overkill for a simple website. Greatly simplify the flake and update it.
This commit is contained in:
Generated
+5
-48
@@ -1,26 +1,5 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
"bundix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1721093334,
|
|
||||||
"narHash": "sha256-5FghZ0HIETbc0TGcBV8uyixq5z4w/9PF5Puhujz3D1o=",
|
|
||||||
"owner": "inscapist",
|
|
||||||
"repo": "bundix",
|
|
||||||
"rev": "42c08846f7e5d91ef121239fd364feaeb22c0bbc",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "inscapist",
|
|
||||||
"ref": "main",
|
|
||||||
"repo": "bundix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
@@ -41,46 +20,24 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748874392,
|
"lastModified": 1768028080,
|
||||||
"narHash": "sha256-eQBfZgtcRTdZIcoguK569f7PdjC0KfNcIdHl3QXPesk=",
|
"narHash": "sha256-50aDK+8eLvsLK39TzQhKNq50/HcXyP4hyxOYoPoVxjo=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "02718908003315c70867d41621c8829ee16809b6",
|
"rev": "d03088749a110d52a4739348f39a63f84bb0be14",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "release-25.05",
|
"ref": "nixos-25.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"bundix": "bundix",
|
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs"
|
||||||
"ruby-nix": "ruby-nix"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ruby-nix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1744623277,
|
|
||||||
"narHash": "sha256-0HWA2YD9v71SHyMF11PKnVJcHnrHhRLHDCldlUbzYII=",
|
|
||||||
"owner": "inscapist",
|
|
||||||
"repo": "ruby-nix",
|
|
||||||
"rev": "43964ced23803f49e2d307fbbfd4e03ed23760c0",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "inscapist",
|
|
||||||
"repo": "ruby-nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
|||||||
@@ -2,78 +2,26 @@
|
|||||||
description = "The Radicle Website";
|
description = "The Radicle Website";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/release-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
bundix = {
|
|
||||||
url = "github:inscapist/bundix/main";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
ruby-nix = {
|
|
||||||
url = "github:inscapist/ruby-nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
bundix,
|
|
||||||
ruby-nix,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [ruby-nix.overlays.ruby];
|
|
||||||
};
|
};
|
||||||
rubyNix = ruby-nix.lib pkgs;
|
|
||||||
bundixcli = bundix.packages.${system}.default;
|
|
||||||
|
|
||||||
deps = with pkgs; [env ruby bundixcli wrangler];
|
|
||||||
|
|
||||||
inherit
|
|
||||||
(rubyNix {
|
|
||||||
name = "seroperson.gitlab.io";
|
|
||||||
gemset = ./gemset.nix;
|
|
||||||
gemConfig = pkgs.defaultGemConfig;
|
|
||||||
})
|
|
||||||
env
|
|
||||||
ruby
|
|
||||||
;
|
|
||||||
in {
|
in {
|
||||||
packages = let
|
|
||||||
bundlecli = pkgs.writeShellApplication {
|
|
||||||
name = "bundle";
|
|
||||||
runtimeInputs = deps;
|
|
||||||
text = ''
|
|
||||||
export BUNDLE_PATH=vendor/bundle
|
|
||||||
bundle "$@"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
jekyll = pkgs.writeShellApplication {
|
|
||||||
name = "jekyll";
|
|
||||||
runtimeInputs = deps;
|
|
||||||
text = ''
|
|
||||||
if [ $# -eq 0 ]; then
|
|
||||||
jekyll build
|
|
||||||
else
|
|
||||||
jekyll "$@"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
jekyll = jekyll;
|
|
||||||
bundle = bundlecli;
|
|
||||||
bundix = bundixcli;
|
|
||||||
default = jekyll;
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
shellHook = ''
|
buildInputs = with pkgs; [
|
||||||
export BUNDLE_PATH=vendor/bundle
|
ruby
|
||||||
'';
|
wrangler
|
||||||
buildInputs = deps;
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user