mirror of
https://github.com/mitchellh/zig-overlay.git
synced 2025-02-05 17:02:48 +02:00
add meta section and setup hook to zig derivation
This commit is contained in:
parent
23b7376ffa
commit
39236a8b28
1 changed files with 12 additions and 2 deletions
14
default.nix
14
default.nix
|
@ -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 =
|
||||||
|
|
Loading…
Add table
Reference in a new issue