nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchgit,
3 gawk,
4 jq,
5 lib,
6 makeWrapper,
7 slurp,
8 stdenv,
9 sway,
10 bash,
11}:
12
13stdenv.mkDerivation {
14 pname = "wlprop";
15 version = "unstable-2022-08-18";
16
17 src = fetchgit {
18 url = "https://gist.github.com/f313386043395ff06570e02af2d9a8e0";
19 rev = "758c548bfb4be5b437c428c8062b3987f126f002";
20 sha256 = "sha256-ZJ9LYYrU2cNYikiVNTlEcI4QXcoqfl7iwk3Be+NhGG8=";
21 };
22
23 strictDeps = true;
24 nativeBuildInputs = [ makeWrapper ];
25 buildInputs = [ bash ];
26
27 dontBuild = true;
28 installPhase = ''
29 runHook preInstall
30
31 install -Dm755 wlprop.sh $out/bin/wlprop
32 wrapProgram "$out/bin/wlprop" \
33 --prefix PATH : "$out/bin:${
34 lib.makeBinPath [
35 gawk
36 jq
37 slurp
38 sway
39 ]
40 }"
41
42 runHook postInstall
43 '';
44 passthru.scriptName = "wlprop.sh";
45
46 meta = with lib; {
47 description = "Xprop clone for wlroots based compositors";
48 homepage = "https://gist.github.com/crispyricepc/f313386043395ff06570e02af2d9a8e0";
49 license = licenses.mit;
50 maintainers = with maintainers; [ ];
51 platforms = platforms.linux;
52 mainProgram = "wlprop";
53 };
54}