linuxwave: 0.1.5 -> 0.2.0

This commit is contained in:
Aaron Jheng
2024-12-14 13:20:04 +08:00
parent 0d34423bd5
commit 6382ac757b
2 changed files with 29 additions and 5 deletions

13
pkgs/by-name/li/linuxwave/deps.nix generated Normal file
View File

@@ -0,0 +1,13 @@
# generated by zon2nix (https://github.com/nix-community/zon2nix)
{ linkFarm, fetchzip }:
linkFarm "zig-packages" [
{
name = "122062d301a203d003547b414237229b09a7980095061697349f8bef41be9c30266b";
path = fetchzip {
url = "https://github.com/Hejsil/zig-clap/archive/refs/tags/0.9.1.tar.gz";
hash = "sha256-pscDsE1jJK1Nktq7rv/ScvsDqvvklFvtiGqOFf2eWvY=";
};
}
]

View File

@@ -3,26 +3,37 @@
stdenv,
fetchFromGitHub,
installShellFiles,
zig_0_10,
zig_0_13,
apple-sdk_11,
callPackage,
}:
let
zig = zig_0_13;
in
stdenv.mkDerivation (finalAttrs: {
pname = "linuxwave";
version = "0.1.5";
version = "0.2.0";
src = fetchFromGitHub {
owner = "orhun";
repo = "linuxwave";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-5c8h9bAe3Qv7PJ3PPcwMJYKPlWsmnqshe6vLIgtdDiQ=";
hash = "sha256-mPBtffqd0+B7J8FxolzOarCyJIZBWkWPBbqZlhX0VSY=";
};
postPatch = ''
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';
nativeBuildInputs = [
installShellFiles
zig_0_10.hook
zig.hook
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_11 ];
postInstall = ''
installManPage man/linuxwave.1
'';
@@ -33,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
changelog = "https://github.com/orhun/linuxwave/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda ];
inherit (zig_0_10.meta) platforms;
inherit (zig.meta) platforms;
mainProgram = "linuxwave";
};
})