-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMain_example.hs
47 lines (35 loc) · 1.53 KB
/
Main_example.hs
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
{-# LANGUAGE OverloadedStrings #-}
module Main where
import NvFetcher
main :: IO ()
main = runNvFetcher packageSet
packageSet :: PackageSet ()
packageSet = do
define $ package "fd" `fromGitHub` ("sharkdp", "fd") `extractSource` ["Cargo.lock"]
define $ package "gcc-10" `fromGitHubTag` ("gcc-mirror", "gcc", includeRegex ?~ "releases/gcc-10.*")
define $ package "feeluown-core" `fromPypi` "feeluown"
define $
package "apple-emoji"
`sourceManual` "0.0.0.20200413"
`fetchUrl` const
"https://github.com/samuelngs/apple-emoji-linux/releases/download/alpha-release-v1.0.0/AppleColorEmoji.ttf"
define $
package "nvfetcher-git"
`sourceGit` "https://github.com/berberman/nvfetcher"
`fetchGitHub` ("berberman", "nvfetcher")
-- define $
-- package "vim"
-- `sourceWebpage` ("http://ftp.vim.org/pub/vim/patches/7.3/", "7\\.3\\.\\d+", id)
-- `fetchGitHub` ("vim", "vim")
-- `tweakVersion` (\v -> v & fromPattern ?~ "(.+)" & toPattern ?~ "v\\1")
define $
package "rust-git-dependency-example"
`sourceManual` "8a5f37a8f80a3b05290707febf57e88661cee442"
`fetchGit` "https://gist.github.com/NickCao/6c4dbc4e15db5da107de6cdb89578375"
`hasCargoLocks` ["Cargo.lock"]
define $ package "vscode-LiveServer" `fromOpenVsx` ("ritwickdey", "LiveServer")
define $
package "revda"
`sourceGit` "https://github.com/THMonster/Revda"
`fetchGitHub'` ("THMonster", "Revda", fetchSubmodules .~ True)
`hasCargoLocks` ["dmlive/Cargo.lock", "dmlive/tars-stream/Cargo.lock"]