tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
muon: unstable-2022-09-24 -> 0.1.0
AndersonTorres
3 years ago
84019db8
c95ebc51
+15
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
build-managers
muon
default.nix
+15
-14
pkgs/development/tools/build-managers/muon/default.nix
···
17
stdenv.mkDerivation (finalAttrs: {
18
pname = "muon"
19
+ lib.optionalString embedSamurai "-embedded-samurai";
20
-
version = "unstable-2022-09-24";
21
22
src = fetchFromSourcehut {
23
name = "muon-src";
24
owner = "~lattis";
25
repo = "muon";
26
-
rev = "f385c82a6104ea3341ca34756e2812d700bc43d8";
27
-
hash = "sha256-Cr1r/sp6iVotU+n4bTzQiQl8Y+ShaqnnaWjL6gRW8p0=";
28
};
0
0
29
30
nativeBuildInputs = [
31
pkgconf
···
50
# URLs manually extracted from subprojects directory
51
meson-docs-wrap = fetchurl {
52
name = "meson-docs-wrap";
53
-
url = "https://mochiro.moe/wrap/meson-docs-0.63.0-116-g8a45c81cf.tar.gz";
54
-
hash = "sha256-fsXdhfBEXvw1mvqnPp2TgZnO5FaeHTNW3Nfd5qfTfxg=";
55
};
56
57
samurai-wrap = fetchurl {
···
79
'';
80
81
buildPhase = let
82
-
featureFlag = feature: flag:
83
"-D${feature}=${if flag then "enabled" else "disabled"}";
84
-
conditionFlag = condition: flag:
85
"-D${condition}=${lib.boolToString flag}";
86
cmdlineForMuon = lib.concatStringsSep " " [
87
-
(conditionFlag "static" stdenv.targetPlatform.isStatic)
88
-
(featureFlag "docs" buildDocs)
89
-
(featureFlag "samurai" embedSamurai)
90
];
91
cmdlineForSamu = "-j$NIX_BUILD_CORES";
92
in ''
···
132
};
133
})
134
# TODO LIST:
135
-
# 1. setup hook
136
-
# 2. multiple outputs
137
-
# 3. automate sources acquisition (especially wraps)
138
-
# 4. tests
···
17
stdenv.mkDerivation (finalAttrs: {
18
pname = "muon"
19
+ lib.optionalString embedSamurai "-embedded-samurai";
20
+
version = "0.1.0";
21
22
src = fetchFromSourcehut {
23
name = "muon-src";
24
owner = "~lattis";
25
repo = "muon";
26
+
rev = finalAttrs.version;
27
+
hash = "sha256-m382/Y+qOYk7hHdDdOpiYWNWrqpnWPCG4AKGGkmLt4o=";
28
};
29
+
30
+
outputs = [ "out" ] ++ lib.optionals buildDocs [ "man" ];
31
32
nativeBuildInputs = [
33
pkgconf
···
52
# URLs manually extracted from subprojects directory
53
meson-docs-wrap = fetchurl {
54
name = "meson-docs-wrap";
55
+
url = "https://mochiro.moe/wrap/meson-docs-0.63.0-239-g41a05ff93.tar.gz";
56
+
hash = "sha256-wg2mDkrkE1xVNXJf4sVm6cN1ozVeDbbw0CBYtixg5/Q=";
57
};
58
59
samurai-wrap = fetchurl {
···
81
'';
82
83
buildPhase = let
84
+
muonFeatureFlag = feature: flag:
85
"-D${feature}=${if flag then "enabled" else "disabled"}";
86
+
muonConditionFlag = condition: flag:
87
"-D${condition}=${lib.boolToString flag}";
88
cmdlineForMuon = lib.concatStringsSep " " [
89
+
(muonConditionFlag "static" stdenv.targetPlatform.isStatic)
90
+
(muonFeatureFlag "docs" buildDocs)
91
+
(muonFeatureFlag "samurai" embedSamurai)
92
];
93
cmdlineForSamu = "-j$NIX_BUILD_CORES";
94
in ''
···
134
};
135
})
136
# TODO LIST:
137
+
# 1. automate sources acquisition (especially wraps)
138
+
# 2. setup hook
139
+
# 3. tests
0