tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
gpython: init at 0.2.0
https://github.com/go-python/gpython
figsoda
2 years ago
be02ea8a
98117166
+49
2 changed files
expand all
collapse all
unified
split
pkgs
development
interpreters
gpython
default.nix
top-level
all-packages.nix
+47
pkgs/development/interpreters/gpython/default.nix
···
1
1
+
{ lib
2
2
+
, buildGoModule
3
3
+
, fetchFromGitHub
4
4
+
, testers
5
5
+
, gpython
6
6
+
}:
7
7
+
8
8
+
buildGoModule rec {
9
9
+
pname = "gpython";
10
10
+
version = "0.2.0";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "go-python";
14
14
+
repo = "gpython";
15
15
+
rev = "v${version}";
16
16
+
hash = "sha256-xqwq27u41Jgoh7t9UDyatuBQswr+h3xio5AV/npncHc=";
17
17
+
};
18
18
+
19
19
+
vendorHash = "sha256-NXPllEhootdB8m5Wvfy8MW899oQnjWAQj7yCC2oDvqE=";
20
20
+
21
21
+
subPackages = [
22
22
+
"."
23
23
+
];
24
24
+
25
25
+
ldflags = [
26
26
+
"-s"
27
27
+
"-w"
28
28
+
"-X=main.version=${version}"
29
29
+
"-X=main.commit=${src.rev}"
30
30
+
"-X=main.date=1970-01-01"
31
31
+
];
32
32
+
33
33
+
passthru.tests = {
34
34
+
version = testers.testVersion {
35
35
+
package = gpython;
36
36
+
command = "gpython < /dev/null";
37
37
+
};
38
38
+
};
39
39
+
40
40
+
meta = with lib; {
41
41
+
description = "A Python interpreter written in Go";
42
42
+
homepage = "https://github.com/go-python/gpython";
43
43
+
changelog = "https://github.com/go-python/gpython/releases/tag/${src.rev}";
44
44
+
license = licenses.bsd3;
45
45
+
maintainers = with maintainers; [ figsoda ];
46
46
+
};
47
47
+
}
+2
pkgs/top-level/all-packages.nix
···
17595
17595
mpi = mpich;
17596
17596
};
17597
17597
17598
17598
+
gpython = callPackage ../development/interpreters/gpython { };
17599
17599
+
17598
17600
graphql-client = callPackage ../development/tools/graphql-client {
17599
17601
inherit (darwin.apple_sdk.frameworks) Security;
17600
17602
};