1
0
Fork 0

redlib: init
All checks were successful
Update Flake / update-flake (push) Successful in 1m33s
Build / build-amd64-linux (push) Successful in 9m8s
Build / build-arm64-linux (push) Successful in 44m52s

This commit is contained in:
Daniel Kempkens 2023-12-28 13:34:17 +01:00
parent f4ebb80e53
commit 89030cc0dd
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 37 additions and 0 deletions

View file

@ -46,6 +46,10 @@ jobs:
run: |
nix build '.#q'
attic push ${{ secrets.ATTIC_CACHE }} ./result
- name: Build redlib
run: |
nix build '.#redlib'
attic push ${{ secrets.ATTIC_CACHE }} ./result
- name: Build rimgo
run: |
nix build '.#rimgo'

View file

@ -21,6 +21,7 @@ jobs:
nix-update --flake anonymous-overflow
nix-update --flake --version development bulk-downloader-for-reddit
nix-update --flake q
nix-update --flake --version main redlib
env NIX_PATH=nixpkgs=$(nix flake metadata github:nixos/nixpkgs/nixos-unstable-small --json | jq -r .path) nix-shell ./packages/tabnine/update.sh
nix-update --flake vuetorrent
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5

View file

@ -43,6 +43,7 @@
lexical = import ./packages/lexical.nix { inherit pkgs lib; };
neovim-nightly = import ./packages/neovim-nightly.nix { inherit (inputs'.neovim-flake.packages) neovim; inherit pkgs lib; };
q = import ./packages/q.nix { inherit pkgs lib; };
redlib = import ./packages/redlib.nix { inherit pkgs lib; };
rexit = import ./packages/rexit.nix { inherit pkgs lib; };
rimgo = import ./packages/rimgo.nix { inherit pkgs lib; };
vuetorrent = import ./packages/vuetorrent.nix { inherit pkgs lib; };

31
packages/redlib.nix Normal file
View file

@ -0,0 +1,31 @@
{ pkgs, lib }:
let
inherit (pkgs.stdenv) isDarwin;
in
pkgs.rustPlatform.buildRustPackage rec {
pname = "redlib";
version = "main";
src = pkgs.fetchFromGitHub {
owner = "redlib-org";
repo = pname;
rev = "7d952f7f18733d23a296afa226be216cbd1f3aea";
sha256 = "sha256-2AcJoXQOhmIKIkDZzgA8btRwTvgWjlPWc67cRIzRg/4=";
};
cargoSha256 = "sha256-MZ3T8fvYYCYn7Pt5YiViabfh/YzKQbOb0CwhY3iP/eg=";
buildInputs = lib.optionals isDarwin (with pkgs.darwin.apple_sdk.frameworks; [
Security
]);
doCheck = false;
meta = with lib; {
description = "Private front-end for Reddit";
homepage = "https://github.com/redlib-org/redlib";
license = [ licenses.agpl3Only ];
platforms = [ "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "x86_64-linux" ];
};
}