diff options
author | lassulus <lassulus@lassul.us> | 2021-02-11 11:09:03 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-02-11 11:09:03 +0100 |
commit | 3054b326ef5e9d92ef8d26b50db5546691c24d59 (patch) | |
tree | 26eeae9a61206a5fddba5690729e2ee2f7ab52e6 /tv/5pkgs/simple/xdpytools/default.nix | |
parent | f0e8399b81b911da6c88d7af442bc305a1827c66 (diff) | |
parent | bda725bbfc4a4e1ecf8a8fd8d3dbff69b5cf4d60 (diff) |
Merge remote-tracking branch 'ni/master'
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 + ]; + })) |