zon2nix: 0.1.1 -> 0.1.2
Diff: https://github.com/nix-community/zon2nix/compare/v0.1.1...v0.1.2 Changelog: https://github.com/nix-community/zon2nix/blob/v0.1.2/CHANGELOG.md
This commit is contained in:
parent
834f66f1ed
commit
a0463e87b3
@ -1,36 +1,37 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, makeBinaryWrapper
|
|
||||||
, zig_0_11
|
, zig_0_11
|
||||||
, nix
|
, nix
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "zon2nix";
|
pname = "zon2nix";
|
||||||
version = "0.1.1";
|
version = "0.1.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "figsoda";
|
owner = "nix-community";
|
||||||
repo = "zon2nix";
|
repo = "zon2nix";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-VzlLoToZ+5beHt9mFsuCxlSZ8RrBodPO6YKtsugAaik=";
|
hash = "sha256-pS0D+wdebtpNaGpDee9aBwEKTDvNU56VXer9uzULXcM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeBinaryWrapper
|
|
||||||
zig_0_11.hook
|
zig_0_11.hook
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
zigBuildFlags = [
|
||||||
wrapProgram $out/bin/zon2nix \
|
"-Dnix=${lib.getExe nix}"
|
||||||
--prefix PATH : ${lib.makeBinPath [ nix ]}
|
];
|
||||||
'';
|
|
||||||
|
zigCheckFlags = [
|
||||||
|
"-Dnix=${lib.getExe nix}"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Convert the dependencies in `build.zig.zon` to a Nix expression";
|
description = "Convert the dependencies in `build.zig.zon` to a Nix expression";
|
||||||
homepage = "https://github.com/figsoda/zon2nix";
|
homepage = "https://github.com/nix-community/zon2nix";
|
||||||
changelog = "https://github.com/figsoda/zon2nix/blob/${src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/nix-community/zon2nix/blob/${src.rev}/CHANGELOG.md";
|
||||||
license = licenses.mpl20;
|
license = licenses.mpl20;
|
||||||
maintainers = with maintainers; [ figsoda ];
|
maintainers = with maintainers; [ figsoda ];
|
||||||
inherit (zig_0_11.meta) platforms;
|
inherit (zig_0_11.meta) platforms;
|
||||||
|
Loading…
Reference in New Issue
Block a user