summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/override/default.nix
blob: 1dd694b70085f2b6efdcf7ca6dc3319df693d565 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
self: super: {

  bitlbee-facebook = super.bitlbee-facebook.overrideAttrs (old: {
    src = self.fetchFromGitHub {
      owner = "bitlbee";
      repo = "bitlbee-facebook";
      rev = "49ea312d98b0578b9b2c1ff759e2cfa820a41f4d";
      sha256 = "0zg1p9pyfsdbfqac2qmyzcr6zjibwdn2907qgc808gljfx8bfnmk";
    };
  });

  flameshot = super.flameshot.overrideAttrs (old: rec {
    name = "flameshot-${version}";
    version = "0.10.2";
    src = self.fetchFromGitHub {
      owner = "flameshot-org";
      repo = "flameshot";
      rev = "v${version}";
      sha256 = "sha256-rZUiaS32C77tFJmEkw/9MGbVTVscb6LOCyWaWO5FyR4=";
   };
    patches = old.patches or [] ++ {
      "0.6.0" = [
        ./flameshot/flameshot_imgur_0.6.0.patch
      ];
      "0.9.0" = [
        ./flameshot/flameshot_imgur_0.9.0.patch
      ];
      "0.10.1" = [
        ./flameshot/flameshot_imgur_0.9.0.patch
      ];
      "0.10.2" = [
        ./flameshot/flameshot_imgur_0.9.0.patch
      ];
    }.${old.version} or [];
  });

  # https://github.com/proot-me/PRoot/issues/106
  proot = self.writeDashBin "proot" ''
    export PROOT_NO_SECCOMP=1
    exec ${super.proot}/bin/proot "$@"
  '';

}