mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-21 20:55:00 +00:00
Add test for repo using vendored modules
This commit is contained in:
parent
02243eca0b
commit
0f5574480e
2 changed files with 30 additions and 0 deletions
28
tests/vendored-modules/default.nix
Normal file
28
tests/vendored-modules/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ runCommand, buildGoApplication, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
version = "0.23.1";
|
||||
|
||||
in
|
||||
buildGoApplication {
|
||||
pname = "dstask";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "naggie";
|
||||
repo = "dstask";
|
||||
rev = "v${version}";
|
||||
sha256 = "0rfz8jim0xqcwdb5n28942v9r3hbvhjrwdgzvbwc9f9psqg2s8d2";
|
||||
};
|
||||
|
||||
modules = null;
|
||||
|
||||
ldflags = [
|
||||
"-w"
|
||||
"-s"
|
||||
"-X github.com/naggie/dstask.VERSION=${version}"
|
||||
"-X github.com/naggie/dstask.GIT_COMMIT=v${version}"
|
||||
];
|
||||
|
||||
subPackages = [ "cmd/dstask.go" ];
|
||||
}
|
2
tests/vendored-modules/script
Executable file
2
tests/vendored-modules/script
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
# No-op
|
Loading…
Reference in a new issue