refactor: use non-flake inputs instead of fetchers

This commit is contained in:
matt1432 2023-12-31 15:44:53 -05:00
parent 68beb6118f
commit 9f2b537bf7
27 changed files with 470 additions and 272 deletions

View file

@ -41,7 +41,7 @@
themes = {
dracula-bat = {
src = pkgs.dracula-theme;
file = "bat/Dracula.tmTheme";
file = "bat";
};
};
extraPackages = with pkgs.bat-extras; [

View file

@ -1,5 +1,5 @@
{pkgs, ...}: let
trash = pkgs.callPackage ./trash-d.nix pkgs;
{pkgs, ...} @ inputs: let
trash = pkgs.callPackage ./trash-d.nix inputs;
in {
home.packages = [trash];

View file

@ -1,6 +1,6 @@
{
trash-d-src,
stdenv,
fetchFromGitHub,
dmd,
dub,
ronn,
@ -8,14 +8,9 @@
}:
stdenv.mkDerivation {
name = "trash";
version = "unstable";
version = trash-d-src.rev;
src = fetchFromGitHub {
owner = "rushsteve1";
repo = "trash-d";
rev = "d88bb672612761c8e299e717857bf9c85a903e99";
hash = "sha256-oPxeoEqOYf6DCg5rJxINqAIlMbxqzAJcZDUY/EzADzY=";
};
src = trash-d-src;
buildInputs = [dub dmd ronn];