nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchgit,
4 fetchFromGitHub,
5}:
6
7let
8 version = "5.15.18";
9
10 mk = name: args: {
11 inherit version;
12 src = fetchgit {
13 inherit (args) url rev sha256;
14 fetchLFS = false;
15 fetchSubmodules = true;
16 deepClone = false;
17 leaveDotGit = false;
18 };
19 };
20in
21lib.mapAttrs mk (lib.importJSON ./srcs-generated.json)
22// {
23 # qtpim has no official releases
24 qtpim = {
25 version = "unstable-2020-11-02";
26 src = fetchFromGitHub {
27 owner = "qt";
28 repo = "qtpim";
29 # Last commit before Qt5 support was broken
30 rev = "f9a8f0fc914c040d48bbd0ef52d7a68eea175a98";
31 hash = "sha256-/1g+vvHjuRLB1vsm41MrHbBZ+88Udca0iEcbz0Q1BNQ=";
32 };
33 };
34
35 # Has no kde/5.15 branch
36 qtpositioning = rec {
37 version = "5.15.2";
38 src = fetchFromGitHub {
39 owner = "qt";
40 repo = "qtpositioning";
41 rev = "v${version}";
42 hash = "sha256-L/P+yAQItm3taPpCNoOOm7PNdOFZiIwJJYflk6JDWvU=";
43 };
44 };
45
46 # qtwebkit does not have an official release tarball on the qt mirror and is
47 # mostly maintained by the community.
48 qtwebkit = rec {
49 src = fetchFromGitHub {
50 owner = "qt";
51 repo = "qtwebkit";
52 rev = "v${version}";
53 sha256 = "0x8rng96h19xirn7qkz3lydal6v4vn00bcl0s3brz36dfs0z8wpg";
54 };
55 version = "5.212.0-alpha4";
56 };
57
58 # qtsystems has no official releases
59 qtsystems = {
60 version = "unstable-2019-01-03";
61 src = fetchFromGitHub {
62 owner = "qt";
63 repo = "qtsystems";
64 rev = "e3332ee38d27a134cef6621fdaf36687af1b6f4a";
65 hash = "sha256-P8MJgWiDDBCYo+icbNva0LODy0W+bmQTS87ggacuMP0=";
66 };
67 };
68
69 qtscript = rec {
70 version = "5.15.19";
71
72 src = fetchFromGitHub {
73 owner = "qt";
74 repo = "qtscript";
75 rev = "v${version}-lts";
76 hash = "sha256-kUY8uSEoHqQVPd4s5BoAW6n1hGXQOQcberqWF6rK60w=";
77 };
78 };
79
80 qtwebengine = rec {
81 version = "5.15.19";
82
83 src = fetchFromGitHub {
84 owner = "qt";
85 repo = "qtwebengine";
86 rev = "v${version}-lts";
87 hash = "sha256-/R4dF1nu40uH8POmx+7xnwaLNZZVgOSY3mSZLMbtvF4=";
88 fetchSubmodules = true;
89 };
90 };
91}