mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-19 20:41:54 +03:00
3b5b9096e1
- yarn-lock: add nodejs version argument - add impure tests - add ci.nix for hercules
28 lines
659 B
Nix
28 lines
659 B
Nix
{
|
|
lib,
|
|
|
|
# dream2nix
|
|
utils,
|
|
}:
|
|
|
|
let
|
|
b = builtins;
|
|
|
|
testParseGitUrl =
|
|
let
|
|
testCases = [
|
|
{
|
|
input = "git+ssh://git@github.com/mattermost/marked.git#6ca9a6b3f4bdd35dbf58d06f5e53369791e05915";
|
|
output = { owner = "mattermost"; repo = "marked"; rev = "6ca9a6b3f4bdd35dbf58d06f5e53369791e05915"; };
|
|
}
|
|
{
|
|
input = "git+https://gitlab.com/openengiadina/js-eris.git#cbe42c8d1921837cc1780253dc9113622cd0826a";
|
|
output = { owner = "openengiadina"; repo = "js-eris"; rev = "cbe42c8d1921837cc1780253dc9113622cd0826a"; };
|
|
}
|
|
];
|
|
|
|
in
|
|
assert ! testParseGithu ->
|
|
throw "failed";
|
|
true
|