nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
510 stars 47 forks source link

package request (and wip branch): wayprompt: layer shell prompted for wayland (gpg pins) #347

Closed colemickens closed 1 year ago

colemickens commented 2 years ago

https://git.sr.ht/~leon_plickat/wayprompt

https://teddit.net/r/swaywm/comments/xoawfu/wayprompt_layer_shell_pinentry_dropin_replacement/

colemickens commented 2 years ago

wip is here, but it doesn't build yet: https://github.com/nix-community/nixpkgs-wayland/compare/master...colemickens:nixpkgs-wayland:wayprompt

colemickens commented 2 years ago

updated error:

this derivation will be built:
  /nix/store/q26r77xk8ihzzn9rbwq80ys2d2ls39da-wayprompt-unstable-4e8b6b2d804e017ec0b2ef78627ff2ce7219f52d.drv
building '/nix/store/q26r77xk8ihzzn9rbwq80ys2d2ls39da-wayprompt-unstable-4e8b6b2d804e017ec0b2ef78627ff2ce7219f52d.drv'...
wayprompt-unstable> unpacking sources
wayprompt-unstable> unpacking source archive /nix/store/f2n0g1sl8dg75iavfh22cmwrwrhx38xl-wayprompt-4e8b6b2
wayprompt-unstable> source root is wayprompt-4e8b6b2
wayprompt-unstable> patching sources
wayprompt-unstable> installing
wayprompt-unstable> LLVM Emit Object... Semantic Analysis... Semantic Analysis [79/247] Semantic Analysis [427/789] Semantic Analysis [753/1271] Semantic Analysis [917/1595] Semantic Analysis [917/1631] Semantic Analysis [974/1717] Semantic Analysis [977/1728] Semantic Analysis [977/1733] Semantic Analysis [1047/1947] Semantic Analysis [1305/2357] Semantic Analysis [1542/2546] Semantic Analysis [1874/2805] Semantic Analysis [2250/3131] Semantic Analysis [2563/3335] Semantic Analysis [2783/3529] Code Generation [325/2789] std.mem.Allocator.reallocAdvancedWithRetAddr... Code Generation [1103/2789] std.zig.system.x86.detectIntelProcessor... Code Generation [1849/2789] std.fmt.formatType... Code Generation [2504/2789] std.fmt.formatType... LLVM Emit Object... LLVM Emit Object... error: FileNotFound
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/os.zig:1473:23: 0x29d4dd in std.os.openatZ (build)
wayprompt-unstable>             .NOENT => return error.FileNotFound,
wayprompt-unstable>                       ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/fs.zig:1025:13: 0x2829ab in std.fs.Dir.openFileZ (build)
wayprompt-unstable>             try os.openatZ(self.fd, sub_path, os_flags, 0);
wayprompt-unstable>             ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/fs.zig:2297:5: 0x282b32 in std.fs.openFileAbsoluteZ (build)
wayprompt-unstable>     return cwd().openFileZ(absolute_path_c, flags);
wayprompt-unstable>     ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/os.zig:2418:19: 0x2be08b in std.os.mkdiratZ (build)
wayprompt-unstable>         .EXIST => return error.PathAlreadyExists,
wayprompt-unstable>                   ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/os.zig:2380:9: 0x2bdf73 in std.os.mkdirat (build)
wayprompt-unstable>         return mkdiratZ(dir_fd, &sub_dir_path_c, mode);
wayprompt-unstable>         ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/fs.zig:1261:9: 0x2bde66 in std.fs.Dir.makeDir (build)
wayprompt-unstable>         try os.mkdirat(self.fd, sub_path, default_new_dir_mode);
wayprompt-unstable>         ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/os.zig:1473:23: 0x29d4dd in std.os.openatZ (build)
wayprompt-unstable>             .NOENT => return error.FileNotFound,
wayprompt-unstable>                       ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/fs.zig:1025:13: 0x2829ab in std.fs.Dir.openFileZ (build)
wayprompt-unstable>             try os.openatZ(self.fd, sub_path, os_flags, 0);
wayprompt-unstable>             ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/fs.zig:958:9: 0x280801 in std.fs.Dir.openFile (build)
wayprompt-unstable>         return self.openFileZ(&path_c, flags);
wayprompt-unstable>         ^
wayprompt-unstable> /build/wayprompt-4e8b6b2/deps/zig-wayland/src/scanner.zig:152:26: 0x2f0341 in .@build.deps.zig-wayland.src.scanner.Scanner.scanProtocol (build)
wayprompt-unstable>         const xml_file = try root_dir.openFile(xml_path, .{});
wayprompt-unstable>                          ^
wayprompt-unstable> /build/wayprompt-4e8b6b2/deps/zig-wayland/src/scanner.zig:45:9: 0x2de3de in .@build.deps.zig-wayland.src.scanner.scan (build)
wayprompt-unstable>         try scanner.scanProtocol(root_dir, out_dir, xml_path);
wayprompt-unstable>         ^
wayprompt-unstable> /build/wayprompt-4e8b6b2/deps/zig-wayland/build.zig:146:9: 0x2d0a89 in .@build.deps.zig-wayland.build.ScanProtocolsStep.make (build)
wayprompt-unstable>         try scanner.scan(root_dir, out_dir, self.protocol_paths.items, self.targets.items);
wayprompt-unstable>         ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/build.zig:3201:9: 0x2bf29e in std.build.Step.make (build)
wayprompt-unstable>         try self.makeFn(self);
wayprompt-unstable>         ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/build.zig:502:9: 0x2bd93c in std.build.Builder.makeOneStep (build)
wayprompt-unstable>         try s.make();
wayprompt-unstable>         ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/build.zig:496:17: 0x2bd8e8 in std.build.Builder.makeOneStep (build)
wayprompt-unstable>                 return err;
wayprompt-unstable>                 ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/build.zig:496:17: 0x2bd8e8 in std.build.Builder.makeOneStep (build)
wayprompt-unstable>                 return err;
wayprompt-unstable>                 ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/build.zig:496:17: 0x2bd8e8 in std.build.Builder.makeOneStep (build)
wayprompt-unstable>                 return err;
wayprompt-unstable>                 ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/build.zig:457:13: 0x2aea81 in std.build.Builder.make (build)
wayprompt-unstable>             try self.makeOneStep(s);
wayprompt-unstable>             ^
wayprompt-unstable> /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/lib/zig/std/special/build_runner.zig:213:21: 0x2a3504 in main (build)
wayprompt-unstable>             else => return err,
wayprompt-unstable>                     ^
wayprompt-unstable> error: the following build command failed with exit code 1:
wayprompt-unstable> /build/wayprompt-4e8b6b2/zig-cache/o/7a7c140a5fadc196aed19908d6426c04/build /nix/store/zv817k96cd2cvzkf61cm7w316kjvgb1f-zig-0.9.1/bin/zig /build/wayprompt-4e8b6b2 /build/wayprompt-4e8b6b2/zig-cache /build/.cache/zig -Drelease-safe -Dcpu=baseline --prefix /nix/store/l0zqyv3bpz5rrmd4j4474jjxhmnx9ah6-wayprompt-unstable-4e8b6b2d804e017ec0b2ef78627ff2ce7219f52d
colemickens commented 2 years ago

seems like maybe it doesn't quite know how to find the wayland-protocol xmls correctly...

colemickens commented 1 year ago

this has been done for a while