-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnur.nix
51 lines (45 loc) · 1.6 KB
/
nur.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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 {};
/* 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;
};
};
}