mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
linuxwave: 0.1.5 -> 0.2.0
This commit is contained in:
13
pkgs/by-name/li/linuxwave/deps.nix
generated
Normal file
13
pkgs/by-name/li/linuxwave/deps.nix
generated
Normal 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=";
|
||||
};
|
||||
}
|
||||
]
|
||||
@@ -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";
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user