mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-05 22:44:34 +05:30
Added rust + compiled ytsub!
This commit is contained in:
parent
c54eab2c1e
commit
62bf4d5660
4 changed files with 45 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
./app/games/games.nix # Various videogame apps
|
||||
./style/stylix.nix # Styling and themes for my apps
|
||||
./lang/cc/cc.nix # C and C++ tools
|
||||
./lang/rust/rust.nix # Rust tools
|
||||
#./lang/python/python.nix # Python
|
||||
#./lang/python/python-packages.nix # Extra Python packages I want
|
||||
./lang/haskell/haskell.nix # Haskell tools
|
||||
|
@ -28,6 +29,7 @@
|
|||
|
||||
home.stateVersion = "22.11"; # Please read the comment before changing.
|
||||
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Core
|
||||
zsh
|
||||
|
@ -91,7 +93,8 @@
|
|||
hunspell hunspellDicts.en_US-large
|
||||
pandoc
|
||||
nodePackages.mermaid-cli
|
||||
|
||||
(pkgs.callPackage ./pkgs/ytsub.nix { })
|
||||
|
||||
# Various dev packages
|
||||
texinfo
|
||||
libffi zlib
|
||||
|
@ -156,4 +159,6 @@
|
|||
EDITOR = "emacsclient";
|
||||
};
|
||||
|
||||
# extra packages
|
||||
|
||||
}
|
||||
|
|
8
user/lang/rust/rust.nix
Normal file
8
user/lang/rust/rust.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
# Rust setup
|
||||
rustup
|
||||
];
|
||||
}
|
28
user/pkgs/ytsub.nix
Normal file
28
user/pkgs/ytsub.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib, pkgs, ... }:
|
||||
let
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = pkgs.rust-bin.stable.latest.minimal;
|
||||
rustc = pkgs.rust-bin.stable.latest.minimal;
|
||||
};
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "ytsub";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchTarball {
|
||||
url = "https://github.com/sarowish/ytsub/archive/refs/tags/v0.4.0.tar.gz";
|
||||
sha256 = "1124mf5r2507d2939833xkavy2vi2rbws67dkim4vwah376k3rlf";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-pv4eKD2XgaDAJqSf3JzfnsayofmOSy4XRzZ8rkZrHAo=";
|
||||
|
||||
buildNoDefaultFeatures = true;
|
||||
buildFeatures = [ "bundled_sqlite" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A subscriptions only TUI Youtube client that uses the Invidious API";
|
||||
homepage = "https://github.com/sarowish/ytsub";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = [];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue