nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage (finalAttrs: {
8 pname = "reddix";
9 version = "0.2.9";
10
11 src = fetchFromGitHub {
12 owner = "ck-zhang";
13 repo = "reddix";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-4MKRzqsTJxtiAGCvQdAAIMbAcXKwkIth1g1uvQuGXso=";
16 };
17
18 cargoHash = "sha256-4R27KeXu7nRA7A7GLbhIf+j5RKnOrOoysoUcZH053ns=";
19
20 checkFlags = [
21 # Always pass on local but fail on ofborg
22 # Might be a race between load_defaults_without_files and env_overrides
23 "--skip=config::tests::load_defaults_without_files"
24 ];
25
26 meta = {
27 description = "Reddit, refined for the terminal";
28 homepage = "https://github.com/ck-zhang/reddix";
29 changelog = "https://github.com/ck-zhang/reddix/blob/${finalAttrs.src.tag}/CHANGELOG.md";
30 license = lib.licenses.mit;
31 mainProgram = "reddix";
32 maintainers = with lib.maintainers; [ aleksana ];
33 };
34})