1
1
mirror of https://github.com/nmattia/niv.git synced 2024-11-29 00:42:04 +03:00

fix: formatting error in sources.nix

This change fixes the issue with sources.nix file that's been failing in
CI. The format was fixed by running `nixpkgs-fmt .` inside of the
nix-shell.
This commit is contained in:
Nikola Knezevic 2022-03-21 12:34:52 +01:00 committed by Nicolas Mattia
parent 9cb7ef336b
commit 788289706e
2 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,7 @@ let
submodules = if spec ? submodules then spec.submodules else false;
in
builtins.fetchGit { url = spec.repo; inherit (spec) rev; inherit ref; }
// (if builtins.compareVersions builtins.nixVersion "2.4" >= 0 then { inherit submodules; } else { });
// (if builtins.compareVersions builtins.nixVersion "2.4" >= 0 then { inherit submodules; } else {});
fetch_local = spec: spec.path;

View File

@ -173,6 +173,8 @@ data SourcesNixVersion
V24
| -- Add the ability to pass submodules to fetchGit
V25
| -- formatting fix
V26
deriving stock (Bounded, Enum, Eq)
-- | A user friendly version
@ -203,6 +205,7 @@ sourcesVersionToText = \case
V23 -> "23"
V24 -> "24"
V25 -> "25"
V26 -> "26"
latestVersionMD5 :: T.Text
latestVersionMD5 = sourcesVersionToMD5 maxBound
@ -240,6 +243,7 @@ sourcesVersionToMD5 = \case
V23 -> "4111204b613ec688e2669516dd313440"
V24 -> "116c2d936f1847112fef0013771dab28"
V25 -> "6612caee5814670e5e4d9dd1b71b5f70"
V26 -> "937bff93370a064c9000f13cec5867f9"
-- | The MD5 sum of ./nix/sources.nix
sourcesNixMD5 :: IO T.Text