default.nix (3531B)
1 { pkgs ? import <nixpkgs> {} }: 2 let callPackage = pkgs.callPackage; 3 callHsPackage = pkgs.haskellPackages.callPackage; 4 fetch = args: callPackage (pkgs.fetchFromGitHub ({ 5 owner = "jb55"; 6 } // args)) {}; 7 8 fetch-jb55 = args: callPackage (pkgs.fetchgit ({ 9 url = "git://jb55.com/${args.repo}"; 10 inherit (args) sha256 rev; 11 })) {}; 12 13 fetch-srht = args: callPackage (pkgs.fetchgit ({ 14 url = "https://git.sr.ht/~jb55/${args.repo}"; 15 inherit (args) sha256 rev; 16 })) {}; 17 in rec { 18 curlc = callPackage ./pkgs/curlc {}; 19 csv-delim = callPackage ./pkgs/csv-delim { }; 20 csv-scripts = callPackage ./pkgs/csv-scripts { inherit csv-delim; }; 21 dbopen = callPackage ./pkgs/dbopen { }; 22 extname = callPackage ./pkgs/extname { }; 23 mandown = callPackage ./pkgs/mandown { }; 24 samp = callPackage ./pkgs/samp { }; 25 26 define = callPackage ./pkgs/define { }; 27 rsslink = callPackage ./pkgs/rsslink { }; 28 x11-rename = callPackage ./pkgs/x11-rename { }; 29 hoogle-zen = callPackage ./pkgs/hoogle-zen { }; 30 31 sharefile = fetch-jb55 { 32 repo = "sharefile"; 33 rev = "9a6b16f13d94833cd1801d5d7a926d5422054d74"; 34 sha256 = "sha256-zIZ+lyjvBI72AQMCjWw/pRE1gWR1BZeg5Y/2kqo61kY="; 35 }; 36 37 ratio = fetch-jb55 { 38 repo = "ratio"; 39 rev = "4ae6e67712946aba70df992cdeafcc03301c6c76"; 40 sha256 = "10qx30s0c6gcinfgdlb3c8rxkv4j25m29jsl923k44bbh3jpdnak"; 41 }; 42 43 nostril = fetch-jb55 { 44 repo = "nostril"; 45 rev = "251031f5a5d098d02c5e74556942d3dd706b5ce4"; 46 sha256 = "sha256-qLqRxdLDos3akNKbKQ0yIbIIovssK1Q40EzJ8hb6hag="; 47 }; 48 49 git-email-contacts = fetch-jb55 { 50 repo = "git-email-contacts"; 51 rev = "7301d727cf09157497cbe72b9174a63b98b9e287"; 52 sha256 = "1y36k3cl94k10s7q6rfx4lni81d30w2kv8n14idjhbbr9ck4jv06"; 53 }; 54 55 cmdtree = fetch-jb55 { 56 repo = "cmdtree"; 57 rev = "9ff1b9d375385210ea2221b4b0e55408453dbd0b"; # use my config 58 sha256 = "0wnp2wis28iplln9h7yips835bhmcchmp373pvw0say35hn3rd36"; 59 }; 60 61 imap-notify = fetch-jb55 { 62 repo = "imap-notify"; 63 rev = "11d8f9b544531a27cbe0fc49ab5c1d4b26d3fba4"; 64 sha256 = "1nnc50plrg9m1dbw8a1hla0d1f86s0bmpy8majq8vicdhf6qxbja"; 65 }; 66 67 nixpkgs-ml-tools = fetch-jb55 { 68 repo = "nixpkgs-ml-tools"; 69 rev = "3d62d22c3c33d885d62418344acba029fe41f541"; # use my config 70 sha256 = "03ql84sf3rc4ixnmn88hxjgs1cgilzf41aw31iwzfg3sk1pqxdkv"; 71 }; 72 73 zoom-link-opener = fetch { 74 repo = "zoom-link-opener"; 75 rev = "0.1.2"; 76 sha256 = "sha256-sytjRdK+CVxnJU4EdVzZyK0c7TJJo+64kJfJTTrKwKM="; 77 }; 78 79 zebra = fetch { 80 repo = "zebra"; 81 rev = "0.1"; 82 sha256 = "1l7rfjwnjc28zszbrzjqsgyp47hkl355is8zshfgv3wacb7n6424"; 83 }; 84 85 viscal = fetch-jb55 { 86 repo = "viscal"; 87 rev = "b93b651522ca684e46603316df88b2c7241afecd"; 88 sha256 = "sha256-iOR3vztBqq+/7+tGDcRuU4HfsBuCLjPKKAflzAAsqOM="; 89 }; 90 91 datefmt = fetch { 92 repo = "datefmt"; 93 rev = "fd48a2fa528d0c2a7ae6e53c350fedd3a6ef4e75"; 94 sha256 = "008kzm899w66r4jai5nnzyvn404iy1381yjb67df4wln8wzy0pqk"; 95 }; 96 97 btcs = fetch { 98 repo = "btcs"; 99 rev = "bbc7b0d96b5b1dc3114ea56b365ee4586cd86d3b"; 100 sha256 = "05mfs6d4r1b9mnzgn74wgjvj04rrmc93hgqqzf53xbrlb0a5s4wg"; 101 }; 102 103 snap = fetch { 104 repo = "sharefile-snap"; 105 rev = "7eacc49f1df577a9faaa33a22664d93347ff362d"; 106 sha256 = "0x5531qyimpah48ijx2bad0mq1gjbpjacymwl3gm08lm0zl0xr09"; 107 }; 108 109 bcalc = fetch-jb55 { 110 repo = "bcalc"; 111 rev = "607c4d562178f4aecee008012e9e83871d2a4f5c"; 112 sha256 = "sha256-WD85Ypx0ZbSBj5+1OZcwPRz4V6dbPeK5foB/gn+romc="; 113 }; 114 }