lol

muon: unstable-2022-09-24 -> 0.1.0

+15 -14
+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 - version = "unstable-2022-09-24"; 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 - rev = "f385c82a6104ea3341ca34756e2812d700bc43d8"; 27 - hash = "sha256-Cr1r/sp6iVotU+n4bTzQiQl8Y+ShaqnnaWjL6gRW8p0="; 26 + rev = finalAttrs.version; 27 + hash = "sha256-m382/Y+qOYk7hHdDdOpiYWNWrqpnWPCG4AKGGkmLt4o="; 28 28 }; 29 + 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 - url = "https://mochiro.moe/wrap/meson-docs-0.63.0-116-g8a45c81cf.tar.gz"; 54 - hash = "sha256-fsXdhfBEXvw1mvqnPp2TgZnO5FaeHTNW3Nfd5qfTfxg="; 55 + url = "https://mochiro.moe/wrap/meson-docs-0.63.0-239-g41a05ff93.tar.gz"; 56 + hash = "sha256-wg2mDkrkE1xVNXJf4sVm6cN1ozVeDbbw0CBYtixg5/Q="; 55 57 }; 56 58 57 59 samurai-wrap = fetchurl { ··· 79 81 ''; 80 82 81 83 buildPhase = let 82 - featureFlag = feature: flag: 84 + muonFeatureFlag = feature: flag: 83 85 "-D${feature}=${if flag then "enabled" else "disabled"}"; 84 - conditionFlag = condition: flag: 86 + muonConditionFlag = condition: flag: 85 87 "-D${condition}=${lib.boolToString flag}"; 86 88 cmdlineForMuon = lib.concatStringsSep " " [ 87 - (conditionFlag "static" stdenv.targetPlatform.isStatic) 88 - (featureFlag "docs" buildDocs) 89 - (featureFlag "samurai" embedSamurai) 89 + (muonConditionFlag "static" stdenv.targetPlatform.isStatic) 90 + (muonFeatureFlag "docs" buildDocs) 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 - # 1. setup hook 136 - # 2. multiple outputs 137 - # 3. automate sources acquisition (especially wraps) 138 - # 4. tests 137 + # 1. automate sources acquisition (especially wraps) 138 + # 2. setup hook 139 + # 3. tests