54 lines
1.7 KiB
Nix
54 lines
1.7 KiB
Nix
# This is the file for my NUR Repo
|
|
# Reminder for myself: Any package here should not import <nixpkgs>, but use the pkgs
|
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
|
|
|
let
|
|
lib = pkgs.lib;
|
|
files = builtins.filter (el: lib.strings.hasSuffix ".nix" el) (lib.attrsets.mapAttrsToList (name: value: name) (builtins.readDir ./mods/nurPkgs));
|
|
names = map (value: lib.strings.removeSuffix ".nix" value) files;
|
|
pwd = builtins.toString ./.;
|
|
in pkgs.lib.attrsets.genAttrs names (name: (pkgs.callPackage "${pwd}/mods/nurPkgs/${name}.nix" {}))
|
|
//
|
|
{
|
|
|
|
imap-backup = pkgs.callPackage ./mods/imap-backup/package.nix {};
|
|
|
|
eGTouch = pkgs.callPackage ./mods/eGTouch-driver/pkg.nix {};
|
|
|
|
/* fails for nur evaluations
|
|
iio-hyprland = let
|
|
repo = pkgs.fetchFromGitHub {
|
|
owner = "yassineibr";
|
|
repo = "iio-hyprland";
|
|
rev = "nix-support";
|
|
hash = "sha256-xFc8J8tlw6i+FbTC05nrlvQIXRmguFzDqh+SQOR54TE=";
|
|
}; in pkgs.callPackage "${repo}/default.nix" {};
|
|
*/
|
|
|
|
csv2vcf = let
|
|
src = pkgs.fetchFromGitHub {
|
|
repo = "csv2vcf";
|
|
owner = "mridah";
|
|
rev = "a6e04999f9cfe350cf59107ea8fc17dad1e43bca";
|
|
hash = "sha256-WrlHVQggfU6y7EGLhGR1k5bDyRLp7FUGRdN/8QK9C+o=";
|
|
};
|
|
in pkgs.writeShellApplication {
|
|
name = "csv2vcf";
|
|
text = ''
|
|
${pkgs.python3}/bin/python ${src}/csv2vcf.py "$@"
|
|
'';
|
|
meta = with pkgs.lib; {
|
|
description = "A small command line tool to convert CSV files to VCard (.vcf) files.";
|
|
longDescription = ''
|
|
see repo's README.md
|
|
'';
|
|
homepage = "https://github.com/mridah/csv2vcf";
|
|
license = licenses.mit;
|
|
maintainers = with lib.maintainers; [ c2vi ];
|
|
platforms = platforms.all;
|
|
};
|
|
};
|
|
|
|
}
|