summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/fast-cli.nix34
-rw-r--r--overlays/postfix-mta-sts-resolver.nix1
-rw-r--r--overlays/urxvt/52-osc.pl41
-rw-r--r--overlays/urxvt/default.nix21
-rw-r--r--overlays/worktime/default.nix2
5 files changed, 2 insertions, 97 deletions
diff --git a/overlays/fast-cli.nix b/overlays/fast-cli.nix
deleted file mode 100644
index a318eada..00000000
--- a/overlays/fast-cli.nix
+++ /dev/null
@@ -1,34 +0,0 @@
1{ prev, sources, ... }: {
2 fast-cli = prev.buildGoModule rec {
3 pname = "fast-cli";
4
5 inherit (sources.fast-cli) version src;
6 vendorSha256 = "sha256-XM/5kUau0JBMxN0UpX6QNI31i8/+HNFvgFUFtlJsBh0=";
7
8 preBuild = let
9 goMod = prev.writeText "go.mod" ''
10 module github.com/gesquive/fast-cli
11
12 go 1.17
13
14 require (
15 github.com/dustin/go-humanize v0.0.0-20170228161531-259d2a102b87
16 github.com/fatih/color v1.4.1
17 github.com/gesquive/cli v0.2.0
18 github.com/inconshreveable/mousetrap v1.0.0
19 github.com/mattn/go-colorable v0.0.8-0.20170210172801-5411d3eea597
20 github.com/mattn/go-isatty v0.0.2-0.20170307163044-57fdcb988a5c
21 github.com/spf13/cobra v0.0.0-20170531045452-8d4ce3549a0b
22 github.com/spf13/pflag v1.0.0
23 golang.org/x/sys v0.0.0-20170213225739-e24f485414ae
24 )
25 '';
26 in ''
27 install -v -m 0644 ${goMod} ./go.mod
28 '';
29
30 ldflags = [
31 "-X main.version=${prev.lib.removePrefix "v" version}"
32 ];
33 };
34}
diff --git a/overlays/postfix-mta-sts-resolver.nix b/overlays/postfix-mta-sts-resolver.nix
index a06dace5..d8b1ff00 100644
--- a/overlays/postfix-mta-sts-resolver.nix
+++ b/overlays/postfix-mta-sts-resolver.nix
@@ -24,5 +24,6 @@
24 ]; 24 ];
25 25
26 _.pyparsing.buildInputs.add = with final.python310Packages; [ flit-core ]; 26 _.pyparsing.buildInputs.add = with final.python310Packages; [ flit-core ];
27 _.idna.buildInputs.add = with final.python310Packages; [ flit-core ];
27 }; 28 };
28} 29}
diff --git a/overlays/urxvt/52-osc.pl b/overlays/urxvt/52-osc.pl
deleted file mode 100644
index 3292e8c4..00000000
--- a/overlays/urxvt/52-osc.pl
+++ /dev/null
@@ -1,41 +0,0 @@
1#! perl
2
3=head1 NAME
4
552-osc - Implement OSC 32 ; Interact with X11 clipboard
6
7=head1 SYNOPSIS
8
9 urxvt -pe 52-osc
10
11=head1 DESCRIPTION
12
13This extension implements OSC 52 for interacting with system clipboard
14
15Most code stolen from:
16http://ailin.tucana.uberspace.de/static/nei/*/Code/urxvt/
17
18=cut
19
20use MIME::Base64;
21use Encode;
22
23sub on_osc_seq {
24 my ($term, $op, $args) = @_;
25 return () unless $op eq 52;
26
27 my ($clip, $data) = split ';', $args, 2;
28 if ($data eq '?') {
29 # my $data_free = $term->selection();
30 # Encode::_utf8_off($data_free); # XXX
31 # $term->tt_write("\e]52;$clip;".encode_base64($data_free, '')."\a");
32 }
33 else {
34 my $data_decoded = decode_base64($data);
35 Encode::_utf8_on($data_decoded); # XXX
36 $term->selection($data_decoded, $clip =~ /c|^$/);
37 $term->selection_grab(urxvt::CurrentTime, $clip =~ /c|^$/);
38 }
39
40 ()
41}
diff --git a/overlays/urxvt/default.nix b/overlays/urxvt/default.nix
deleted file mode 100644
index 77a2c51f..00000000
--- a/overlays/urxvt/default.nix
+++ /dev/null
@@ -1,21 +0,0 @@
1{ final, prev, ... }: {
2 rxvt_unicode-with-plugins = prev.rxvt-unicode.override {
3 configure = { availablePlugins, ... }: {
4 plugins = [ final.urxvt_osc_52 ] ++ builtins.attrValues availablePlugins;
5 };
6 };
7 urxvt_osc_52 = prev.stdenv.mkDerivation {
8 name = "rxvt_unicode-osc_52-0";
9 src = ./52-osc.pl;
10 unpackPhase = ''
11 cp $src 52-osc
12 '';
13 buildPhase = ''
14 sed -i 's|#! perl|#! ${final.perl}/bin/perl|g' 52-osc
15 '';
16 installPhase = ''
17 mkdir -p $out/lib/urxvt/perl
18 cp 52-osc $out/lib/urxvt/perl
19 '';
20 };
21}
diff --git a/overlays/worktime/default.nix b/overlays/worktime/default.nix
index a8ee15e3..20c0b90f 100644
--- a/overlays/worktime/default.nix
+++ b/overlays/worktime/default.nix
@@ -5,7 +5,7 @@
5 5
6 phases = [ "buildPhase" "checkPhase" "installPhase" ]; 6 phases = [ "buildPhase" "checkPhase" "installPhase" ];
7 7
8 python = prev.python39.withPackages (ps: with ps; [pyxdg dateutil uritools requests configparser tabulate]); 8 python = prev.python39.withPackages (ps: with ps; [pyxdg python-dateutil uritools requests configparser tabulate]);
9 buildInputs = [ python ]; 9 buildInputs = [ python ];
10 10
11 buildPhase = '' 11 buildPhase = ''