Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wayprompt: init at 0.1.2 #337376

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions pkgs/by-name/wa/wayprompt/build.zig.zon.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# generated by zon2nix (https://github.com/nix-community/zon2nix)

{ linkFarm, fetchzip }:

linkFarm "zig-packages" [
{
name = "12201bbf05e1fb73323a9b13d2599dc4bf82851e6d328d7523a1af5b861a87edf286";
path = fetchzip {
url = "https://git.sr.ht/~leon_plickat/zig-ini/archive/879c74a3a801d49fa34343aebd55a22f591899b3.tar.gz";
hash = "sha256-in7abjMSWtnmrri2tbTJW2WVL4ZLrKkTT8Bxy8njJT4=";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you fill these in automatically?

I'm hitting this nix-community/zon2nix#23

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you fill these in automatically?

I'm hitting this nix-community/zon2nix#23

No, I was also hitting the same, that's why I didn't put an update script in automation. I manually filled those empty hashes.

};
}
{
name = "12202727aaaf0e742d4945be55af1ace8b25902095e0c1b0a24b70cc80a81b7ac518";
path = fetchzip {
url = "https://git.sr.ht/~leon_plickat/zig-spoon/archive/fdba8e643c9558254bf4e6c600dfbd782fa7a267.tar.gz";
hash = "sha256-c8V+HqtDMW6JBDKilzrC39GizvWPp1eMton1X4PpxJI=";
};
}
{
name = "1220687c8c47a48ba285d26a05600f8700d37fc637e223ced3aa8324f3650bf52242";
path = fetchzip {
url = "https://codeberg.org/ifreund/zig-wayland/archive/v0.2.0.tar.gz";
hash = "sha256-dvit+yvc0MnipqWjxJdfIsA6fJaJZOaIpx4w4woCxbE=";
};
}
{
name = "12209db20ce873af176138b76632931def33a10539387cba745db72933c43d274d56";
path = fetchzip {
url = "https://codeberg.org/ifreund/zig-pixman/archive/v0.2.0.tar.gz";
hash = "sha256-zcfZEMnipWDPuptl9UN0PoaJDjy2EHc7Wwi4GQq3hkY=";
};
}
{
name = "1220a4029ee3ee70d3175c69878e2b70dccd000c4324bc74ba800d8a143b7250fb38";
path = fetchzip {
url = "https://git.sr.ht/~novakane/zig-fcft/archive/1.1.0.tar.gz";
hash = "sha256-JAR6Ticav9l/3aemJWGsjXMEUyHjuhUr3L0fznnLoEY=";
};
}
{
name = "1220c90b2228d65fd8427a837d31b0add83e9fade1dcfa539bb56fd06f1f8461605f";
path = fetchzip {
url = "https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz";
hash = "sha256-T+EZiStBfmxFUjaX05WhYkFJ8tRok/UQtpc9QY9NxZk=";
};
}
]
58 changes: 58 additions & 0 deletions pkgs/by-name/wa/wayprompt/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
callPackage,
lib,
zig_0_13,
stdenv,
fetchFromSourcehut,
fcft,
libxkbcommon,
pixman,
pkg-config,
scdoc,
wayland,
wayland-protocols,
wayland-scanner,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "wayprompt";
version = "0.1.2";

src = fetchFromSourcehut {
owner = "~leon_plickat";
repo = "wayprompt";
rev = "v${finalAttrs.version}";
hash = "sha256-+9Zgq5/Zbb1I3CMH1pivPkddThaGDXM+vVCzWppXq+0=";
};

deps = callPackage ./build.zig.zon.nix { };

nativeBuildInputs = [
zig_0_13.hook
pkg-config
wayland
wayland-scanner
scdoc
];

buildInputs = [
fcft
libxkbcommon
pixman
wayland-protocols
];

zigBuildFlags = [
"--system"
"${finalAttrs.deps}"
];

meta = {
homepage = "https://git.sr.ht/~leon_plickat/wayprompt";
description = "Multi-purpose (password-)prompt tool for Wayland";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ sg-qwt ];
mainProgram = "pinentry-wayprompt";
platforms = lib.platforms.linux;
};
})