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
17
stdenv.mkDerivation (finalAttrs: {
18
18
pname = "muon"
19
19
+ lib.optionalString embedSamurai "-embedded-samurai";
20
20
-
version = "unstable-2022-09-24";
20
20
+
version = "0.1.0";
21
21
22
22
src = fetchFromSourcehut {
23
23
name = "muon-src";
24
24
owner = "~lattis";
25
25
repo = "muon";
26
26
-
rev = "f385c82a6104ea3341ca34756e2812d700bc43d8";
27
27
-
hash = "sha256-Cr1r/sp6iVotU+n4bTzQiQl8Y+ShaqnnaWjL6gRW8p0=";
26
26
+
rev = finalAttrs.version;
27
27
+
hash = "sha256-m382/Y+qOYk7hHdDdOpiYWNWrqpnWPCG4AKGGkmLt4o=";
28
28
};
29
29
+
30
30
+
outputs = [ "out" ] ++ lib.optionals buildDocs [ "man" ];
29
31
30
32
nativeBuildInputs = [
31
33
pkgconf
···
50
52
# URLs manually extracted from subprojects directory
51
53
meson-docs-wrap = fetchurl {
52
54
name = "meson-docs-wrap";
53
53
-
url = "https://mochiro.moe/wrap/meson-docs-0.63.0-116-g8a45c81cf.tar.gz";
54
54
-
hash = "sha256-fsXdhfBEXvw1mvqnPp2TgZnO5FaeHTNW3Nfd5qfTfxg=";
55
55
+
url = "https://mochiro.moe/wrap/meson-docs-0.63.0-239-g41a05ff93.tar.gz";
56
56
+
hash = "sha256-wg2mDkrkE1xVNXJf4sVm6cN1ozVeDbbw0CBYtixg5/Q=";
55
57
};
56
58
57
59
samurai-wrap = fetchurl {
···
79
81
'';
80
82
81
83
buildPhase = let
82
82
-
featureFlag = feature: flag:
84
84
+
muonFeatureFlag = feature: flag:
83
85
"-D${feature}=${if flag then "enabled" else "disabled"}";
84
84
-
conditionFlag = condition: flag:
86
86
+
muonConditionFlag = condition: flag:
85
87
"-D${condition}=${lib.boolToString flag}";
86
88
cmdlineForMuon = lib.concatStringsSep " " [
87
87
-
(conditionFlag "static" stdenv.targetPlatform.isStatic)
88
88
-
(featureFlag "docs" buildDocs)
89
89
-
(featureFlag "samurai" embedSamurai)
89
89
+
(muonConditionFlag "static" stdenv.targetPlatform.isStatic)
90
90
+
(muonFeatureFlag "docs" buildDocs)
91
91
+
(muonFeatureFlag "samurai" embedSamurai)
90
92
];
91
93
cmdlineForSamu = "-j$NIX_BUILD_CORES";
92
94
in ''
···
132
134
};
133
135
})
134
136
# TODO LIST:
135
135
-
# 1. setup hook
136
136
-
# 2. multiple outputs
137
137
-
# 3. automate sources acquisition (especially wraps)
138
138
-
# 4. tests
137
137
+
# 1. automate sources acquisition (especially wraps)
138
138
+
# 2. setup hook
139
139
+
# 3. tests