Merge pull request #4979 from jack-wines/main

Add agru to flake.nix
This commit is contained in:
Slavi Pantaleev
2026-07-12 17:03:06 +03:00
2 changed files with 59 additions and 27 deletions
Generated
+24 -6
View File
@@ -1,15 +1,31 @@
{ {
"nodes": { "nodes": {
"agru-src": {
"flake": false,
"locked": {
"lastModified": 1772059918,
"narHash": "sha256-o3ZNyJjDEY2RCwIiBWSjWTo6/DqAVMK+ElTuwAVdZrg=",
"owner": "etkecc",
"repo": "agru",
"rev": "31a799242c4546ad1f9dbac79abcfafc79daba64",
"type": "github"
},
"original": {
"owner": "etkecc",
"repo": "agru",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1731533236,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -20,21 +36,23 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1712578459, "lastModified": 1771923393,
"narHash": "sha256-r+rjtYIdwV7mEqFwbvaS7dZSH+3xNW9loR3Rh9C0ifI=", "narHash": "sha256-Fy0+UXELv9hOE8WjYhJt8fMDLYTU2Dqn3cX4BwoGBos=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b1a486be09c354e25a18689eb21425e43892e38c", "rev": "ea7f1f06811ce7fcc81d6c6fd4213150c23edcf2",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"agru-src": "agru-src",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
+35 -21
View File
@@ -1,31 +1,45 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
agru-src = {
url = "github:etkecc/agru";
flake = false;
};
}; };
outputs = { outputs =
self, {
nixpkgs, self,
flake-utils, nixpkgs,
}: flake-utils,
flake-utils.lib.eachDefaultSystem agru-src,
( }:
system: let flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
}; };
agru = pkgs.buildGo125Module {
pname = "agru";
version = "0.1.19";
src = agru-src;
vendorHash = null;
};
in in
with pkgs; { with pkgs;
devShells.default = mkShell { {
buildInputs = [ devShells.default = mkShell {
just buildInputs = [
mise just
ansible mise
]; ansible
shellHook = '' agru
echo "$(ansible --version)" ];
''; shellHook = ''
}; echo "$(ansible --version)"
} '';
};
}
); );
} }