From 4b9f197fb0d16cf68777b821617c4e14df44f6c9 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Thu, 24 Sep 2020 22:29:47 +0200 Subject: [PATCH] Add nixos 20.09 (#199) * Add NixOS 20.09 * a different prefix is needed since 20.09 is not released yet Co-authored-by: Andreas Rammhold --- .github/workflows/cron.yml | 1 + import-scripts/import_scripts/channel.py | 1 + src/Search.elm | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index e6d08f3..4472352 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -16,6 +16,7 @@ jobs: matrix: channel: - unstable + - 20.09 - 20.03 - 19.09 diff --git a/import-scripts/import_scripts/channel.py b/import-scripts/import_scripts/channel.py index 2c2621d..6672e0d 100644 --- a/import-scripts/import_scripts/channel.py +++ b/import-scripts/import_scripts/channel.py @@ -29,6 +29,7 @@ CHANNELS = { "unstable": "nixos/unstable/nixos-20.09pre", "19.09": "nixos/19.09/nixos-19.09.", "20.03": "nixos/20.03/nixos-20.03.", + "20.09": "nixos/20.09/nixos-20.09alpha", } ANALYSIS = { "normalizer": { diff --git a/src/Search.elm b/src/Search.elm index 924bf62..39bbaec 100644 --- a/src/Search.elm +++ b/src/Search.elm @@ -318,7 +318,7 @@ type Channel = Unstable | Release_19_09 | Release_20_03 - + | Release_20_09 type alias ChannelDetails = { id : String @@ -340,6 +340,9 @@ channelDetails channel = Release_20_03 -> ChannelDetails "20.03" "20.03" "nixos/release-20.03" "nixos-20.03" + Release_20_09 -> + ChannelDetails "20.09" "20.09" "nixos/release-20.09" "nixos-20.09" + channelFromId : String -> Maybe Channel channelFromId channel_id = @@ -353,6 +356,9 @@ channelFromId channel_id = "20.03" -> Just Release_20_03 + "20.09" -> + Just Release_20_09 + _ -> Nothing @@ -367,6 +373,7 @@ channels : List String channels = [ "19.09" , "20.03" + , "20.09" , "unstable" ]