1
0
Fork 0
mirror of https://github.com/mitchellh/zig-overlay.git synced 2025-07-07 22:27:50 +03:00
This commit is contained in:
Mikołaj Lercher 2023-12-14 16:08:46 +00:00 committed by GitHub
commit 2cb2b1816c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 7 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@ index.json
index.json.minisig index.json.minisig
sources.old.json sources.old.json
sources.new.json sources.new.json
.direnv/

View file

@ -11,7 +11,7 @@
version, version,
sha256, sha256,
}: }:
pkgs.stdenv.mkDerivation { pkgs.stdenv.mkDerivation (finalAttrs: {
inherit version; inherit version;
pname = "zig"; pname = "zig";
@ -26,7 +26,17 @@
cp -r lib/* $out/lib cp -r lib/* $out/lib
cp zig $out/bin/zig cp zig $out/bin/zig
''; '';
};
passthru.hook = pkgs.zig.hook.override {zig = finalAttrs.finalPackage;};
meta = with pkgs.lib; {
description = "General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software";
homepage = "https://ziglang.org/";
license = lib.licenses.mit;
maintainers = [];
platforms = lib.platforms.unix;
};
});
# The packages that are tagged releases # The packages that are tagged releases
taggedPackages = taggedPackages =

8
flake.lock generated
View file

@ -33,16 +33,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1689088367, "lastModified": 1702565688,
"narHash": "sha256-Y2tl2TlKCWEHrOeM9ivjCLlRAKH3qoPUE/emhZECU14=", "narHash": "sha256-Rlbeq5iV1y1r69tYmEMz9aiIjFcbqLulkwr5OvG4pT8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5c9ddb86679c400d6b7360797b8a22167c2053f8", "rev": "1190e17452013669665b163a017cd7f62a290daa",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "release-23.05", "ref": "release-23.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View file

@ -2,7 +2,7 @@
description = "Zig compiler binaries."; description = "Zig compiler binaries.";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05"; nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
# Used for shell.nix # Used for shell.nix