Skip to content

Commit

Permalink
Prepare 0.5.0 (#68)
Browse files Browse the repository at this point in the history
* Prepare 0.5.0

* Update version number in default.nix
  • Loading branch information
berberman authored Apr 17, 2022
1 parent 9b52d85 commit db780db
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 17 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Revision history for nvfetcher

## 0.5.0.0

There have been many significant changes since the last release.
**Starting from this version, nvfetcher no longer requires shake database for each project,
in other words, there is no need to commit the database in git or share it between machines.**
Also, a machine-readable `generated.json` will be generated for convenience.

### Migration

The option in TOML configuration `cargo_lock` (string) was changed to `cargo_locks` (list of strings), since now nvfetcher supports handling multi-cargo locks.

* Use `fetchFromGitHub` as the GitHub fetcher (introduces [`nix-prefetch`](https://github.com/msteen/nix-prefetch))
* Add [cmd](https://nvchecker.readthedocs.io/en/latest/usage.html#find-with-a-command) version source
* Support pinning a package
* Tweak src name to extract .vsx file properly
* Add option --filter to specify packages to update
* Fix missing `argActionAfterBuild`
* Add one shot nvchecker rule independent of package definition
* Don't cache generated nix exprs in shake database
* Add `fetchTarball`
* Produce parser readable `generated.json`
* Internalize shake database
* Validate config before decoding
* Extract `Config` from `Arg` and save it to shake extra
* Breakdown `Args` to provide a more concise API
* Support multi-cargo lock files
* Pretty print rules in command line

## 0.4.0.0

* Rename `_build` to `_sources`
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ We always check versions of packages during each run, but only do prefetch and f

How to use the generated sources file? Here are several examples:

- [DevOS](https://github.com/divnix/devos/tree/main/pkgs)

- My [flakes repo](https://github.com/berberman/flakes)

- Nick Cao's [flakes repo](https://gitlab.com/NickCao/flakes/-/tree/master/pkgs)
Expand Down
2 changes: 1 addition & 1 deletion nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}:
mkDerivation {
pname = "nvfetcher";
version = "0.4.0.0";
version = "0.5.0.0";
src = ../.;
isLibrary = true;
isExecutable = true;
Expand Down
4 changes: 2 additions & 2 deletions nvfetcher.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: nvfetcher
version: 0.4.0.0
version: 0.5.0.0
synopsis:
Generate nix sources expr for the latest version of packages

Expand All @@ -13,7 +13,7 @@ license: MIT
license-file: LICENSE
author: berberman
maintainer: berberman <berberman.yandex.com>
copyright: 2021 berberman
copyright: 2021-2022 berberman
category: Nix
build-type: Simple
extra-doc-files:
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ViewPatterns #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
5 changes: 5 additions & 0 deletions src/NvFetcher/Config.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
-- Portability: portable
module NvFetcher.Config where

import Data.Default
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/ExtractSrc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/FetchRustGitDeps.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/NixExpr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/NixFetcher.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ViewPatterns #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/Nvchecker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/Options.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TemplateHaskell #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/PackageSet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ViewPatterns #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/Types/Lens.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TemplateHaskell #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
2 changes: 1 addition & 1 deletion src/NvFetcher/Types/ShakeExtras.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeApplications #-}

-- | Copyright: (c) 2021 berberman
-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
Expand Down
5 changes: 5 additions & 0 deletions src/NvFetcher/Utils.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{-# LANGUAGE CPP #-}

-- | Copyright: (c) 2021-2022 berberman
-- SPDX-License-Identifier: MIT
-- Maintainer: berberman <[email protected]>
-- Stability: experimental
-- Portability: portable
module NvFetcher.Utils where

import Data.Binary
Expand Down

0 comments on commit db780db

Please sign in to comment.