[feat] Add stuff and fmt

This commit is contained in:
Uttarayan Mondal
2024-03-20 21:08:21 +05:30
parent e2d9094f81
commit 52ff760a5a
2 changed files with 35 additions and 12 deletions

View File

@@ -49,10 +49,8 @@
lua-language-server lua-language-server
(nerdfonts.override { fonts = [ "Hasklig" ]; }) (nerdfonts.override { fonts = [ "Hasklig" ]; })
pfetch-rs pfetch-rs
mpc-cli
mmtc
] ++ lib.optionals device.isLinux [
psst psst
] ++ lib.optionals device.isLinux [
mpv mpv
catppuccinThemes.gtk catppuccinThemes.gtk
catppuccinThemes.papirus-folders catppuccinThemes.papirus-folders

View File

@@ -75,17 +75,43 @@ let
cargoLock = { lockFile = "${picat-src}/Cargo.lock"; }; cargoLock = { lockFile = "${picat-src}/Cargo.lock"; };
}; };
psst = (prev.psst.overrideAttrs (final: prev: { psst =
postInstall = (prev.postInstall or "") + '' if final.pkgs.stdenv.isLinux then
patch $out/share/applications/Psst.desktop < ${./patches/psst.patch} (prev.psst.overrideAttrs (finalAttrs: prevAttrs: {
''; postInstall = (prevAttrs.postInstall or "") + ''
})); patch $out/share/applications/Psst.desktop < ${./patches/psst.patch}
'';
}))
else
final.rustPlatform.buildRustPackage rec {
pname = "psst";
version = "1";
src = final.pkgs.fetchFromGitHub {
# https://github.com/jpochyla/psst
owner = "jpochyla";
repo = "psst";
rev = "master";
sha256 = "sha256-W+MFToyvYDQuC/8DqigvENxzJ6QGQOAeAdmdWG6+qZk";
};
buildInputs = with final; [
pkgs.darwin.apple_sdk.frameworks.CoreAudio
pkgs.darwin.apple_sdk.frameworks.AudioUnit
];
# nativeBuildInputs = buildInputs;
cargoLock = {
lockFile = "${src}/Cargo.lock";
outputHashes = {
"cubeb-0.10.3" = "sha256-gV1KHOhq678E/Rj+u8jX9Fw+TepPwuZdV5y/D+Iby+o";
"druid-0.8.3" = "sha256-hTB9PQf2TAhcLr64VjjQIr18mczwcNogDSRSN5dQULA";
"druid-enums-0.1.0" = "sha256-KJvAgKxicx/g+4QRZq3iHt6MGVQbfOpyN+EhS6CyDZk";
};
};
};
}; };
anyrun-overlay = final: prev: { anyrun-overlay = final: prev: {
anyrun = (inputs.anyrun.packages.${prev.system}.anyrun.overrideAttrs (finalAttrs: prevAttrs: { anyrun = (inputs.anyrun.packages.${prev.system}.anyrun.overrideAttrs
cargoPatches = [ ./patches/anyrun.patch ]; (finalAttrs: prevAttrs: { cargoPatches = [ ./patches/anyrun.patch ]; }));
}));
hyprwin = inputs.anyrun-hyprwin.packages.${prev.system}.hyprwin; hyprwin = inputs.anyrun-hyprwin.packages.${prev.system}.hyprwin;
nixos-options = inputs.anyrun-nixos-options.packages.${prev.system}.default; nixos-options = inputs.anyrun-nixos-options.packages.${prev.system}.default;
anyrun-rink = inputs.anyrun-rink.packages.${prev.system}.default; anyrun-rink = inputs.anyrun-rink.packages.${prev.system}.default;
@@ -158,7 +184,6 @@ let
''; '';
}); });
# nixneovim = nixneovim.applyPatches { # nixneovim = nixneovim.applyPatches {
# name = "nixneovim-patched"; # name = "nixneovim-patched";
# src = inputs.nixneovim; # src = inputs.nixneovim;