NixOS-based container for running GitHub actions
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update to zig push-container

+69 -16
+44 -1
flake.lock
··· 13 13 "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" 14 14 } 15 15 }, 16 + "push-container": { 17 + "inputs": { 18 + "nixpkgs": [ 19 + "nixpkgs" 20 + ], 21 + "zig": "zig" 22 + }, 23 + "locked": { 24 + "lastModified": 1769905894, 25 + "narHash": "sha256-vEQwYRDc8VNFT40pLXqeQpRzRi4Ki8nz0v6xVcDwlAY=", 26 + "ref": "refs/heads/main", 27 + "rev": "4da280dec0819e8a45b65dcd7cfd99bba5f57160", 28 + "revCount": 2, 29 + "type": "git", 30 + "url": "https://git.ocjtech.us/jeff/push-container.git" 31 + }, 32 + "original": { 33 + "type": "git", 34 + "url": "https://git.ocjtech.us/jeff/push-container.git" 35 + } 36 + }, 16 37 "root": { 17 38 "inputs": { 18 - "nixpkgs": "nixpkgs" 39 + "nixpkgs": "nixpkgs", 40 + "push-container": "push-container" 41 + } 42 + }, 43 + "zig": { 44 + "inputs": { 45 + "nixpkgs": [ 46 + "push-container", 47 + "nixpkgs" 48 + ] 49 + }, 50 + "locked": { 51 + "lastModified": 1769905375, 52 + "narHash": "sha256-99X6x4OwJOqlDib9VdW6rImpj3uEeUPKZU8VSjVB3ZY=", 53 + "ref": "refs/heads/main", 54 + "rev": "0b3d93bd2ea88670571a82092f84104ca30be4a4", 55 + "revCount": 1603, 56 + "type": "git", 57 + "url": "https://git.ocjtech.us/jeff/zig-overlay.git" 58 + }, 59 + "original": { 60 + "type": "git", 61 + "url": "https://git.ocjtech.us/jeff/zig-overlay.git" 19 62 } 20 63 } 21 64 },
+25 -15
flake.nix
··· 5 5 nixpkgs = { 6 6 url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz"; 7 7 }; 8 + push-container = { 9 + url = "git+https://git.ocjtech.us/jeff/push-container.git"; 10 + inputs = { 11 + nixpkgs.follows = "nixpkgs"; 12 + }; 13 + }; 8 14 }; 9 15 10 16 outputs = 11 17 { 12 18 self, 13 19 nixpkgs, 20 + push-container, 14 21 }: 15 22 let 16 23 makePackages = ··· 66 73 pkgs.nix 67 74 pkgs.nodejs_20 68 75 pkgs.nushell 76 + pkgs.pinact 69 77 pkgs.podman 70 78 pkgs.reuse 71 79 pkgs.regctl ··· 77 85 78 86 self.packages.${pkgs.stdenv.hostPlatform.system}.docker-client 79 87 self.packages.${pkgs.stdenv.hostPlatform.system}.git 80 - self.packages.${pkgs.stdenv.hostPlatform.system}.push-container 88 + push-container.packages.${pkgs.stdenv.hostPlatform.system}.push-container 81 89 ]; 82 90 83 91 flake-registry = null; ··· 427 435 ]; 428 436 }; 429 437 }; 430 - push-container = pkgs.writeTextFile { 431 - name = "push-container"; 432 - destination = "/bin/push-container"; 433 - text = lib.concatStringsSep "\n" [ 434 - "#!${lib.getExe pkgs.nushell}" 435 - "" 436 - "alias regctl = ^${pkgs.regctl}/bin/regctl" 437 - "alias gzip = ^${pkgs.gzip}/bin/gzip" 438 - "" 439 - (builtins.readFile ./push-container.nu) 440 - ]; 441 - executable = true; 442 - }; 438 + # push-container = pkgs.writeTextFile { 439 + # name = "push-container"; 440 + # destination = "/bin/push-container"; 441 + # text = lib.concatStringsSep "\n" [ 442 + # "#!${lib.getExe pkgs.nushell}" 443 + # "" 444 + # "alias regctl = ^${pkgs.regctl}/bin/regctl" 445 + # "alias gzip = ^${pkgs.gzip}/bin/gzip" 446 + # "" 447 + # (builtins.readFile ./push-container.nu) 448 + # ]; 449 + # executable = true; 450 + # }; 443 451 } 444 452 ); 445 453 apps = forAllSystems (pkgs: { 446 454 push-container = { 447 455 type = "app"; 448 - program = "${self.packages.${pkgs.system}.push-container}/bin/push-container"; 456 + program = "${pkgs.lib.getExe 457 + push-container.packages.${pkgs.stdenv.hostPlatform.system}.push-container 458 + }"; 449 459 }; 450 460 }); 451 461 };