diff options
author | tv <tv@krebsco.de> | 2021-02-07 21:52:37 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2021-02-07 22:31:53 +0100 |
commit | a94d2ce6c7e83ecb0337affd91200c4774ba7920 (patch) | |
tree | b637161ba7adfe17a252fef4074e9e4abb8c4eac /tv/5pkgs/simple/xdpytools/default.nix | |
parent | 1ff4a60b8d241230c580fc5e9a705335c9c415a6 (diff) |
tv xdpytools: init
Diffstat (limited to 'tv/5pkgs/simple/xdpytools/default.nix')
-rw-r--r-- | tv/5pkgs/simple/xdpytools/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/xdpytools/default.nix b/tv/5pkgs/simple/xdpytools/default.nix new file mode 100644 index 000000000..7d1ee071e --- /dev/null +++ b/tv/5pkgs/simple/xdpytools/default.nix @@ -0,0 +1,31 @@ +{ lib, pkgs }: + +let + install = name: { path }: /* sh */ '' + ( + mkdir -p $out/bin + touch $out/bin/${name} + chmod +x $out/bin/${name} + exec >$out/bin/${name} + + echo '#! ${pkgs.dash}/bin/dash' + echo export PATH=${lib.makeBinPath path} + sed 1d ${./src + "/${name}"} + ) + ''; +in + +pkgs.runCommand "xdpytools" {} + (toString + (lib.mapAttrsToList install { + xdpychvt.path = [ + "$out" + "/run/wrappers/'$LOGNAME'" + "/run/wrappers" + ]; + xdpysel.path = [ + "$out" + pkgs.findutils + pkgs.jq + ]; + })) |