add meta section and setup hook to zig derivation

This commit is contained in:
bandithedoge 2023-12-14 17:05:27 +01:00
parent 23b7376ffa
commit 39236a8b28

View file

@ -11,7 +11,7 @@
version,
sha256,
}:
pkgs.stdenv.mkDerivation {
pkgs.stdenv.mkDerivation (finalAttrs: {
inherit version;
pname = "zig";
@ -26,7 +26,17 @@
cp -r lib/* $out/lib
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
taggedPackages =