diff --git a/README.md b/README.md index b6e6c3d..52bb3a7 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ initialized with niv and nixpkgs: "nixpkgs": { "url": "https://github.com/NixOS/nixpkgs-channels/archive/109a28ab954a0ad129f7621d468f829981b8b96c.tar.gz", "owner": "NixOS", - "branch": "nixos-19.03", + "branch": "nixos-19.09", "url_template": "https://github.com///archive/.tar.gz", "repo": "nixpkgs-channels", "sha256": "12wnxla7ld4cgpdndaipdh3j4zdalifk287ihxhnmrzrghjahs3q", @@ -133,7 +133,7 @@ import sources.nixpkgs # and use them again! #### Tracking a nixpkgs branch The `init` command sets the `nix/sources.json` file to track the latest commit -present on nixpkgs 19.03 when the command was run. Run the following command to +present on nixpkgs 19.09 when the command was run. Run the following command to update it: ``` shell @@ -143,7 +143,7 @@ $ niv update nixpkgs To change the branch being tracked run this command: ``` shell -$ niv update nixpkgs -b nixos-19.03 # equivalent to --branch nixos-19.03 +$ niv update nixpkgs -b nixos-19.09 # equivalent to --branch nixos-19.09 ``` #### Importing packages from GitHub @@ -224,7 +224,7 @@ Available commands: Examples: niv add stedolan/jq - niv add NixOS/nixpkgs-channels -n nixpkgs -b nixos-19.03 + niv add NixOS/nixpkgs-channels -n nixpkgs -b nixos-19.09 niv add my-package -v alpha-0.1 -t http://example.com/archive/.zip Usage: niv add PACKAGE [-n|--name NAME] ([-a|--attribute KEY=VAL] | diff --git a/README.tpl.md b/README.tpl.md index 6351b73..a43d3ec 100644 --- a/README.tpl.md +++ b/README.tpl.md @@ -96,7 +96,7 @@ initialized with niv and nixpkgs: "nixpkgs": { "url": "https://github.com/NixOS/nixpkgs-channels/archive/109a28ab954a0ad129f7621d468f829981b8b96c.tar.gz", "owner": "NixOS", - "branch": "nixos-19.03", + "branch": "nixos-19.09", "url_template": "https://github.com///archive/.tar.gz", "repo": "nixpkgs-channels", "sha256": "12wnxla7ld4cgpdndaipdh3j4zdalifk287ihxhnmrzrghjahs3q", @@ -133,7 +133,7 @@ import sources.nixpkgs # and use them again! #### Tracking a nixpkgs branch The `init` command sets the `nix/sources.json` file to track the latest commit -present on nixpkgs 19.03 when the command was run. Run the following command to +present on nixpkgs 19.09 when the command was run. Run the following command to update it: ``` shell @@ -143,7 +143,7 @@ $ niv update nixpkgs To change the branch being tracked run this command: ``` shell -$ niv update nixpkgs -b nixos-19.03 # equivalent to --branch nixos-19.03 +$ niv update nixpkgs -b nixos-19.09 # equivalent to --branch nixos-19.09 ``` #### Importing packages from GitHub diff --git a/nix/sources.json b/nix/sources.json index 2247067..c91a444 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -1,6 +1,6 @@ { "nixpkgs": { - "branch": "nixos-19.03", + "branch": "nixos-19.09", "description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels", "homepage": "https://github.com/NixOS/nixpkgs", "owner": "NixOS", diff --git a/src/Niv/Cli.hs b/src/Niv/Cli.hs index 2eaf622..aa1aeeb 100644 --- a/src/Niv/Cli.hs +++ b/src/Niv/Cli.hs @@ -125,7 +125,7 @@ cmdInit = do , ( pathNixSourcesJson fsj , \path -> do createFile path initNixSourcesJsonContent - -- Imports @niv@ and @nixpkgs@ (19.03) + -- Imports @niv@ and @nixpkgs@ (19.09) say "Importing 'niv' ..." cmdAdd (updateCmd githubCmd) (PackageName "niv") (specToFreeAttrs $ PackageSpec $ HMS.fromList @@ -138,7 +138,7 @@ cmdInit = do (specToFreeAttrs $ PackageSpec $ HMS.fromList [ "owner" .= ("NixOS" :: T.Text) , "repo" .= ("nixpkgs-channels" :: T.Text) - , "branch" .= ("nixos-19.03" :: T.Text) + , "branch" .= ("nixos-19.09" :: T.Text) ] ) , \path _content -> dontCreateFile path) diff --git a/src/Niv/GitHub/Cmd.hs b/src/Niv/GitHub/Cmd.hs index c5b9fbf..f7fddcb 100644 --- a/src/Niv/GitHub/Cmd.hs +++ b/src/Niv/GitHub/Cmd.hs @@ -109,7 +109,7 @@ describeGitHub = mconcat "Examples:" Opts.<$$> "" Opts.<$$> " niv add stedolan/jq" Opts.<$$> - " niv add NixOS/nixpkgs-channels -n nixpkgs -b nixos-19.03" Opts.<$$> + " niv add NixOS/nixpkgs-channels -n nixpkgs -b nixos-19.09" Opts.<$$> " niv add my-package -v alpha-0.1 -t http://example.com/archive/.zip" ] diff --git a/tests/github/default.nix b/tests/github/default.nix index 18a958e..755b2fd 100644 --- a/tests/github/default.nix +++ b/tests/github/default.nix @@ -71,7 +71,7 @@ pkgs.runCommand "test" mkdir -p mock/repos/NixOS/nixpkgs-channels cp ${./data/repos/NixOS/nixpkgs-channels/repository.json} mock/repos/NixOS/nixpkgs-channels/index.html mkdir -p mock/repos/NixOS/nixpkgs-channels/commits - cat ${./data/repos/NixOS/nixpkgs-channels/commits.json} | jq -j '.[0] | .sha' > mock/repos/NixOS/nixpkgs-channels/commits/nixos-19.03 + cat ${./data/repos/NixOS/nixpkgs-channels/commits.json} | jq -j '.[0] | .sha' > mock/repos/NixOS/nixpkgs-channels/commits/nixos-19.09 mkdir -p mock/NixOS/nixpkgs-channels/archive cp ${./data/archives + "/${nixpkgs-channels_HEAD}.tar.gz"} \ mock/NixOS/nixpkgs-channels/archive/${nixpkgs-channels_HEAD}.tar.gz diff --git a/tests/github/expected/niv-init.json b/tests/github/expected/niv-init.json index a9e8ae0..9ac732d 100644 --- a/tests/github/expected/niv-init.json +++ b/tests/github/expected/niv-init.json @@ -12,7 +12,7 @@ "url_template": "http://localhost:3333///archive/.tar.gz" }, "nixpkgs": { - "branch": "nixos-19.03", + "branch": "nixos-19.09", "description": "Nixpkgs/NixOS branches that track the Nixpkgs/NixOS channels", "homepage": null, "owner": "NixOS",