aboutsummaryrefslogtreecommitdiff
path: root/pkgs/default.nix
blob: 24860958da5c520eb1ed0c38ec980e9ceda5b589 (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
44
45
46
47
48
{ self, nixpkgs }:

let
  callPackage = nixpkgs.newScope personalpkgs;

  personalpkgs = rec {

    luks-hw-password = callPackage ./luks-hw-password { };

    delft-icon-theme = callPackage ./theme/delft-icon-theme.nix { };
    background-lnxpcs = callPackage ./theme/background-lnxpcs.nix { };
    swaybackground = callPackage ./theme/swaybackground.nix { };
    myswaylock = callPackage ./theme/myswaylock.nix { };

    stardict-unwrapped = callPackage ./stardict { };
    stardict = callPackage ./stardict/wrapper.nix { stardict = stardict-unwrapped; };
    stardict-en-cz = callPackage ./stardict/en-cz.nix { };
    stardict-de-cz = callPackage ./stardict/de-cz.nix { };
    stardict-cz = callPackage ./stardict/cz.nix { };
    sdcv-unwrapped = callPackage ./sdcv { };
    sdcv = callPackage ./stardict/wrapper.nix { stardict = sdcv-unwrapped; };

    lorem-text = callPackage ./lorem-text { };

    # Package to be installed to the user's profile
    cynerd-profile = nixpkgs.symlinkJoin {
      name = "cynerd-profile";
      paths = [
        self.inputs.shellrc.packages.${nixpkgs.system}.default
        nixpkgs.tig
      ];
    };

    # cyrus_sasl with curus_sasl_xoauth2
    cyrus_sasl_xoauth2 = callPackage ./cyrus-sasl-xoauth2 {
      cyrus_sasl = nixpkgs.cyrus_sasl; # prevent infinite cycle
    };
    cyrus_sasl = nixpkgs.cyrus_sasl.overrideAttrs (div: rec {
      postInstall = ''
        for lib in ${cyrus_sasl_xoauth2}/usr/lib/sasl2/*; do
          ln -sf $lib $out/lib/sasl2/
        done
      '';
    });

  };

in personalpkgs