Merge pull request #58 from privatevoid-net/updates-20230129
Updates 20230129
This commit is contained in:
commit
074e5165f8
8 changed files with 103 additions and 55 deletions
64
flake.lock
64
flake.lock
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665870395,
|
"lastModified": 1675021904,
|
||||||
"narHash": "sha256-Tsbqb27LDNxOoPLh0gw2hIb6L/6Ow/6lIBvqcHzEKBI=",
|
"narHash": "sha256-jkg8ZwPi0aYKxtaGvGXzxz14kGkGxMrdJZj2gGxRo3E=",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "agenix",
|
"repo": "agenix",
|
||||||
"rev": "a630400067c6d03c9b3e0455347dc8559db14288",
|
"rev": "6d3a415637981b966f3bdb813aefcff405630a7f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -127,11 +127,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673399964,
|
"lastModified": 1675023912,
|
||||||
"narHash": "sha256-v6SrE4rcDAX78VxPZPfPSRXygJ08AfoESL+HcF5VPBQ=",
|
"narHash": "sha256-4FR94JS4lNc1GeO7PKjrq0ktfbYwlDcqJUvJH7VOBuY=",
|
||||||
"owner": "max-privatevoid",
|
"owner": "max-privatevoid",
|
||||||
"repo": "dream2nix",
|
"repo": "dream2nix",
|
||||||
"rev": "67087477ada8f9309c3616ce06132c296225cdee",
|
"rev": "0140d77bada3a8f9884d2202195c3fea51968368",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -151,11 +151,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671279624,
|
"lastModified": 1674180232,
|
||||||
"narHash": "sha256-zY+ZFkIftR/ygx59L6jK50OgJLAIcUdYljoLPMnzm7w=",
|
"narHash": "sha256-Eqrcd6ayrwLthrOkQp8VshxUphC1is/lTk++8yC0/GA=",
|
||||||
"owner": "DavHau",
|
"owner": "DavHau",
|
||||||
"repo": "drv-parts",
|
"repo": "drv-parts",
|
||||||
"rev": "f8bdb04964ef64e74bd227937cf6f4306478001b",
|
"rev": "26eceebedcffa68f93a761dde45cf0789f59be22",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -171,11 +171,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1670441596,
|
"lastModified": 1674771137,
|
||||||
"narHash": "sha256-+T487QnluBT5F9tVk0chG/zzv+9zzTrx3o7rlOBK7ps=",
|
"narHash": "sha256-Zpk1GbEsYrqKmuIZkx+f+8pU0qcCYJoSUwNz1Zk+R00=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "8d0e2444ab05f79df93b70e5e497f8c708eb6b9b",
|
"rev": "7c7a8bce3dffe71203dcd4276504d1cb49dfe05f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -199,11 +199,27 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"haskell-flake": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1674066917,
|
||||||
|
"narHash": "sha256-nRSAb7N64zmAbXUoVVqY/s2LbSIdDTdfN0sSKG5/CCY=",
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "haskell-flake",
|
||||||
|
"rev": "c6ff897db9abdd4e5ff7911b5f9234a1380c6611",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "haskell-flake",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hercules-ci-agent": {
|
"hercules-ci-agent": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": [
|
"flake-parts": [
|
||||||
"flake-parts"
|
"flake-parts"
|
||||||
],
|
],
|
||||||
|
"haskell-flake": "haskell-flake",
|
||||||
"nix-darwin": [
|
"nix-darwin": [
|
||||||
"blank"
|
"blank"
|
||||||
],
|
],
|
||||||
|
@ -213,11 +229,11 @@
|
||||||
"pre-commit-hooks-nix": "pre-commit-hooks-nix"
|
"pre-commit-hooks-nix": "pre-commit-hooks-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673968502,
|
"lastModified": 1674658417,
|
||||||
"narHash": "sha256-LR8oNDT4G3tjY4RhQHv0LoW7jtysPwtxYMryg6WUPhQ=",
|
"narHash": "sha256-HqtPKh6A4I9TH6AJHwJyKAhBz9x+kJYYMiYJcZBGib0=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "hercules-ci-agent",
|
"repo": "hercules-ci-agent",
|
||||||
"rev": "2063a731d51041bc5922a16f88a2bcc39cf8f6a2",
|
"rev": "d79e8b2ca8142335097222e78cdf9953f2183eed",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -239,11 +255,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1671710218,
|
"lastModified": 1674152863,
|
||||||
"narHash": "sha256-c9QR6qTauyLru/2BrIQcgKX4eYR/JFdhbTt+piilO14=",
|
"narHash": "sha256-Y5ROi4LeBT07tejuteHS1FeLUlsjgMJ9IC9Yo8GaN1U=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "hercules-ci-effects",
|
"repo": "hercules-ci-effects",
|
||||||
"rev": "9684190de4cd0e75859f1939d13973fce3a7ce46",
|
"rev": "c6c39dde5892d3cb8b4e81e851e21353c6c30506",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -348,11 +364,11 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"host": "git.privatevoid.net",
|
"host": "git.privatevoid.net",
|
||||||
"lastModified": 1674088745,
|
"lastModified": 1674866006,
|
||||||
"narHash": "sha256-IYIfjkbh3rrP7fTzhj26YZ8j/ZKLR5MEIrK4WoRMJIQ=",
|
"narHash": "sha256-6xWH1moJwBwD/AbVbM6DRgCqF95N27RSGZCV2JJogI8=",
|
||||||
"owner": "max",
|
"owner": "max",
|
||||||
"repo": "nix-super",
|
"repo": "nix-super",
|
||||||
"rev": "8909f06cae1c15ecc19ac2c84c09edd5fff37e80",
|
"rev": "792d83f2623ed0a54fa994c92305dcadf2e18369",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -364,11 +380,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673957332,
|
"lastModified": 1674980507,
|
||||||
"narHash": "sha256-njH7Szk1BLVWGMw7IRibgGejSlxXHj9saZHfH20gHdk=",
|
"narHash": "sha256-epLKnRtNk+UrWwjXyOdKZXm4ECAv7KM4VFY4TuWbwX0=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b83e7f5a04a3acc8e92228b0c4bae68933d504eb",
|
"rev": "1a87dcd5669c34f10ceb312a09439ebbb9239069",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
(host: mkDeploy host // (overrides.${host} or {}) );
|
(host: mkDeploy host // (overrides.${host} or {}) );
|
||||||
|
|
||||||
effects = inputs.hercules-ci-effects.lib.withPkgs nixpkgsFor.x86_64-linux;
|
effects = inputs.hercules-ci-effects.lib.withPkgs nixpkgsFor.x86_64-linux;
|
||||||
in flake-parts.lib.mkFlake { inherit self; } {
|
in flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
inherit systems;
|
inherit systems;
|
||||||
flake = {
|
flake = {
|
||||||
nixosModules = aspect.modules;
|
nixosModules = aspect.modules;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, inputs', self', ... }:
|
{ pkgs, inputs', self', ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
dependencySets = {
|
drv-parts.dependencySets = {
|
||||||
inherit pkgs inputs' self';
|
inherit pkgs inputs' self';
|
||||||
inherit (pkgs) python3Packages;
|
inherit (pkgs) python3Packages;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "grafana";
|
pname = "grafana";
|
||||||
version = "9.2.1";
|
version = "9.3.6";
|
||||||
|
|
||||||
excludedPackages = [ "alert_webhook_listener" "clean-swagger" "release_publisher" "slow_proxy" "slow_proxy_mac" "macaron" "devenv" ];
|
excludedPackages = [ "alert_webhook_listener" "clean-swagger" "release_publisher" "slow_proxy" "slow_proxy_mac" "macaron" "devenv" ];
|
||||||
|
|
||||||
|
@ -10,15 +10,15 @@ buildGoModule rec {
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
owner = "grafana";
|
owner = "grafana";
|
||||||
repo = "grafana";
|
repo = "grafana";
|
||||||
sha256 = "sha256-0TMvSILkT29Ebm/P3PK1NKNs+TbE+874aDRybahhMGg=";
|
sha256 = "sha256-7t30AvGtCyU02fOYWHYcMWgcnmkepUpZzUMR4NjIlvw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
srcStatic = fetchurl {
|
srcStatic = fetchurl {
|
||||||
url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz";
|
url = "https://dl.grafana.com/oss/release/grafana-${version}.linux-amd64.tar.gz";
|
||||||
sha256 = "sha256-yL6qyAOZT47eiPkdxeBARkChP0L4vj1y7LDvrPUBmQQ=";
|
sha256 = "sha256-jRUPrb6ocqux4SrMm/Hw/2DuG7sj2jKhSln16ynjHwM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-021b+Jdk1VUGNSVNef89KLbWLdy4XhhEry4S2S0AhRg=";
|
vendorSha256 = "sha256-uGJ3D14qAvDkBUIlNxF1pCHMDYeuUoM8tPWfoEvA5o4=";
|
||||||
|
|
||||||
nativeBuildInputs = [ wire ];
|
nativeBuildInputs = [ wire ];
|
||||||
|
|
||||||
|
|
|
@ -17,16 +17,47 @@
|
||||||
# hci-agent's build code does some funny shenanigans
|
# hci-agent's build code does some funny shenanigans
|
||||||
hercules-ci-agent = let
|
hercules-ci-agent = let
|
||||||
original = packages.hercules-ci-agent.hercules-ci-agent;
|
original = packages.hercules-ci-agent.hercules-ci-agent;
|
||||||
patchedNix = patch-rename-direct original.nix ({ version, ...}: "nix-${version}_hci2") "patches/extra/hercules-ci-agent/nix";
|
patchedNix = (patch original.nix "patches/extra/hercules-ci-agent/nix").overrideAttrs (old: rec {
|
||||||
in (original.override {
|
name = "nix-${version}";
|
||||||
# for hercules-ci-cnix-expr, hercules-ci-cnix-store
|
version = "${original.nix.version}_hci2";
|
||||||
nix = patchedNix;
|
postUnpack = ''
|
||||||
# for cachix
|
${old.postUnpack or ""}
|
||||||
pkgs = pkgs // { nix = patchedNix; };
|
echo -n "${version}" > .version
|
||||||
}).overrideAttrs (old: {
|
'';
|
||||||
# for hercules-ci-agent
|
|
||||||
buildInputs = (lib.remove original.nix old.buildInputs) ++ [ patchedNix ];
|
|
||||||
});
|
});
|
||||||
|
forcePatchNix = old: {
|
||||||
|
buildInputs = (lib.remove original.nix old.buildInputs) ++ [ patchedNix ];
|
||||||
|
passthru = old.passthru // {
|
||||||
|
nix = patchedNix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
patchDeps = lib.const rec {
|
||||||
|
hercules-ci-cnix-store = packages.hercules-ci-agent.internal-hercules-ci-cnix-store.override (lib.const {
|
||||||
|
nix = patchedNix;
|
||||||
|
});
|
||||||
|
hercules-ci-cnix-expr = packages.hercules-ci-agent.internal-hercules-ci-cnix-expr.override (lib.const {
|
||||||
|
nix = patchedNix;
|
||||||
|
inherit hercules-ci-cnix-store;
|
||||||
|
});
|
||||||
|
cachix = (pkgs.haskellPackages.cachix.override (lib.const {
|
||||||
|
nix = patchedNix;
|
||||||
|
inherit hercules-ci-cnix-store;
|
||||||
|
})).overrideAttrs (o: {
|
||||||
|
postPatch = ''
|
||||||
|
${o.postPatch or ""}
|
||||||
|
# jailbreak pkgconfig deps
|
||||||
|
cp cachix.cabal cachix.cabal.backup
|
||||||
|
sed -i cachix.cabal -e 's/\(nix-[a-z]*\) *(==[0-9.]* *|| *>[0-9.]*) *&& *<[0-9.]*/\1/g'
|
||||||
|
sed -i cachix.cabal -e 's/pkgconfig-depends:.*/pkgconfig-depends: nix-main, nix-store/'
|
||||||
|
echo
|
||||||
|
echo Applied:
|
||||||
|
diff -U5 cachix.cabal.backup cachix.cabal ||:
|
||||||
|
echo
|
||||||
|
rm cachix.cabal.backup
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
};
|
||||||
|
in (original.override patchDeps).overrideAttrs forcePatchNix;
|
||||||
|
|
||||||
hci = packages.hercules-ci-agent.hercules-ci-cli;
|
hci = packages.hercules-ci-agent.hercules-ci-cli;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
perSystem = { config, drv-backends, lib, pkgs, ... }: let
|
perSystem = { config, drv-backends, lib, pkgs, ... }: let
|
||||||
deps = with config.dependencySets.python3Packages; [
|
deps = with config.drv-parts.dependencySets.python3Packages; [
|
||||||
poetry-core
|
poetry-core
|
||||||
requests-unixsocket
|
requests-unixsocket
|
||||||
py-multibase
|
py-multibase
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
"repo": "excalidraw"
|
"repo": "excalidraw"
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"revision": "d6a5ef19367c366ea9dc15d1f17569d829163828",
|
"revision": "5ae39c9292bb69853b69a67ff1889380a651d6ca",
|
||||||
"url": "https://github.com/excalidraw/excalidraw/archive/d6a5ef19367c366ea9dc15d1f17569d829163828.tar.gz",
|
"url": "https://github.com/excalidraw/excalidraw/archive/5ae39c9292bb69853b69a67ff1889380a651d6ca.tar.gz",
|
||||||
"hash": "01n34zv1dls7k9n8b2vhgjpc9qfmxw5z8vyjp0h8k5jbgjfv7izk"
|
"hash": "1h0frqzkvsk5p4x1g4yxfb460wj8bb699l7x4lhpb2rmd9qgxp90"
|
||||||
},
|
},
|
||||||
"searxng": {
|
"searxng": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -34,9 +34,9 @@
|
||||||
"repo": "searxng"
|
"repo": "searxng"
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"revision": "13b0c251c45c3d14700723b25b601be56178e8df",
|
"revision": "9d102fb08ff4a7dc04d093561adde60436e3f69e",
|
||||||
"url": "https://github.com/searxng/searxng/archive/13b0c251c45c3d14700723b25b601be56178e8df.tar.gz",
|
"url": "https://github.com/searxng/searxng/archive/9d102fb08ff4a7dc04d093561adde60436e3f69e.tar.gz",
|
||||||
"hash": "0w46fw5vv3311xfgrzfpf5v00m5p27ck3gpz1jj29pnnm9alm93z"
|
"hash": "17ay25ipybs46khycsjgy1qf6q5127gn8v9vw7fv9p2drswmhzj0"
|
||||||
},
|
},
|
||||||
"stevenblack-hosts": {
|
"stevenblack-hosts": {
|
||||||
"type": "GitRelease",
|
"type": "GitRelease",
|
||||||
|
@ -47,10 +47,10 @@
|
||||||
},
|
},
|
||||||
"pre_releases": false,
|
"pre_releases": false,
|
||||||
"version_upper_bound": null,
|
"version_upper_bound": null,
|
||||||
"version": "3.11.52",
|
"version": "3.12.1",
|
||||||
"revision": "5bd46272f4073e7c4b461bb1674e67a641b3c48e",
|
"revision": "a5b36aac7afc39d46af5324769fab5cbfc1c5bab",
|
||||||
"url": "https://api.github.com/repos/StevenBlack/hosts/tarball/3.11.52",
|
"url": "https://api.github.com/repos/StevenBlack/hosts/tarball/3.12.1",
|
||||||
"hash": "07zg9ff6m4zvwvnf37hwxz6iklnmh5k5d9b4gc1bma7wcf5hlikn"
|
"hash": "09wrz3ydlw0yx2pw18vn1dl8v7914h4nnjg0fna0lacc0wyhdmj3"
|
||||||
},
|
},
|
||||||
"tempo": {
|
"tempo": {
|
||||||
"type": "GitRelease",
|
"type": "GitRelease",
|
||||||
|
@ -75,10 +75,10 @@
|
||||||
},
|
},
|
||||||
"pre_releases": false,
|
"pre_releases": false,
|
||||||
"version_upper_bound": null,
|
"version_upper_bound": null,
|
||||||
"version": "1.19.4",
|
"version": "1.19.6",
|
||||||
"revision": "5f5c2d7c469da6be1a1ac4208cbcfe35de9ae6d3",
|
"revision": "2b57b3e863954c9d9cf7911b76f600bb8de4c41b",
|
||||||
"url": "https://api.github.com/repos/louislam/uptime-kuma/tarball/1.19.4",
|
"url": "https://api.github.com/repos/louislam/uptime-kuma/tarball/1.19.6",
|
||||||
"hash": "1n0vmy2m4hzgl50j5lzkziq2z8dbynvdcyyk5hm8cxy9vb7f2v0j"
|
"hash": "0kwljvnjd0wqxk6pjj66c82kc4wflc1cs8c2lz5cngsghmxjck8y"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"version": 2
|
"version": 2
|
||||||
|
|
|
@ -21,6 +21,7 @@ toPythonModule (buildPythonApplication rec {
|
||||||
VERSION_TAG="${pin.revision}"
|
VERSION_TAG="${pin.revision}"
|
||||||
GIT_URL="https://github.com/${repo.owner}/${repo.repo}"
|
GIT_URL="https://github.com/${repo.owner}/${repo.repo}"
|
||||||
GIT_BRANCH="${pin.branch}"
|
GIT_BRANCH="${pin.branch}"
|
||||||
|
DOCKER_TAG="none"
|
||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue