mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 17:24:35 +05:30
Added rust + compiled ytsub!
This commit is contained in:
parent
c54eab2c1e
commit
62bf4d5660
|
@ -7,6 +7,7 @@
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||||
eaf = {
|
eaf = {
|
||||||
url = "github:emacs-eaf/emacs-application-framework";
|
url = "github:emacs-eaf/emacs-application-framework";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
@ -17,7 +18,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, nix-doom-emacs, stylix, eaf, eaf-browser, ... }@inputs:
|
outputs = { self, nixpkgs, home-manager, nix-doom-emacs, stylix, eaf, eaf-browser, rust-overlay, ... }@inputs:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
name = "emmet";
|
name = "emmet";
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config = { allowUnfree = true; };
|
config = { allowUnfree = true; };
|
||||||
|
overlays = [ rust-overlay.overlays.default ];
|
||||||
};
|
};
|
||||||
|
|
||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
./app/games/games.nix # Various videogame apps
|
./app/games/games.nix # Various videogame apps
|
||||||
./style/stylix.nix # Styling and themes for my apps
|
./style/stylix.nix # Styling and themes for my apps
|
||||||
./lang/cc/cc.nix # C and C++ tools
|
./lang/cc/cc.nix # C and C++ tools
|
||||||
|
./lang/rust/rust.nix # Rust tools
|
||||||
#./lang/python/python.nix # Python
|
#./lang/python/python.nix # Python
|
||||||
#./lang/python/python-packages.nix # Extra Python packages I want
|
#./lang/python/python-packages.nix # Extra Python packages I want
|
||||||
./lang/haskell/haskell.nix # Haskell tools
|
./lang/haskell/haskell.nix # Haskell tools
|
||||||
|
@ -28,6 +29,7 @@
|
||||||
|
|
||||||
home.stateVersion = "22.11"; # Please read the comment before changing.
|
home.stateVersion = "22.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Core
|
# Core
|
||||||
zsh
|
zsh
|
||||||
|
@ -91,6 +93,7 @@
|
||||||
hunspell hunspellDicts.en_US-large
|
hunspell hunspellDicts.en_US-large
|
||||||
pandoc
|
pandoc
|
||||||
nodePackages.mermaid-cli
|
nodePackages.mermaid-cli
|
||||||
|
(pkgs.callPackage ./pkgs/ytsub.nix { })
|
||||||
|
|
||||||
# Various dev packages
|
# Various dev packages
|
||||||
texinfo
|
texinfo
|
||||||
|
@ -156,4 +159,6 @@
|
||||||
EDITOR = "emacsclient";
|
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…
Reference in a new issue