added a custom overlay for nixpkgs, moves all of the packages that I maintain into an attribute set 'pkgs.myPkgs' so that my update checker can easily locate them

This commit is contained in:
2024-11-10 17:43:52 -05:00
parent 06b840a743
commit f9b8251567
5 changed files with 137 additions and 78 deletions

View File

@@ -0,0 +1,47 @@
{
stdenv,
fetchFromGitHub,
lib,
}:
let
pagedMov = {
email = "kylerclay@proton.me";
github = "pagedMov";
githubId = 19557376;
name = "Kyler Clay";
keys = [ { fingerprint = "784B 3623 94E7 8F11 0B9D AE0F 56FD CFA6 2A93 B51E"; } ];
};
in
stdenv.mkDerivation {
pname = "tinyfetch";
version = "0.2";
src = fetchFromGitHub {
owner = "abrik1";
repo = "tinyfetch";
rev = "refs/tags/0.2";
hash = "sha256-nuC7Xtfg7rf6/IDhUKT2JZD9V0Hl/welNAFDJYJKwmA=";
};
buildPhase = ''
runHook preBuild
$CC src/tinyfetch.c -o tinyfetch
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 tinyfetch -t $out/bin
runHook postInstall
'';
meta = {
description = "Simple fetch in C which is tiny and fast";
homepage = "https://github.com/abrik1/tinyfetch";
license = lib.licenses.mit;
mainProgram = "tinyfetch";
maintainers = [ pagedMov ];
platforms = lib.platforms.unix;
};
}