Skip to content

Commit

Permalink
viddy: 1.1.5 -> 1.2.0 (#352525)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 31, 2024
2 parents 59e9936 + fdfd646 commit ac9bfb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions pkgs/by-name/vi/viddy/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@

rustPlatform.buildRustPackage rec {
pname = "viddy";
version = "1.1.5";
version = "1.2.0";

src = fetchFromGitHub {
owner = "sachaos";
repo = "viddy";
rev = "v${version}";
hash = "sha256-RewzToI7vhaH8r6ZWDLgfSJOOCm26Udkzh9+xkJP2jE=";
hash = "sha256-r+zgZutBwNRLYNltdSaIB5lS4qHAhI5XL3iFF+FVd64=";
};

cargoHash = "sha256-NhgiaUEUTfsbVqFkBgLPc3A8XmtwgQ5tp673zFD4TGI=";
cargoHash = "sha256-rEz3GFfqtSzZa0r4Nwbu3gEf7GhsOkfawaFaNplD/tE=";

# requires nightly features
env.RUSTC_BOOTSTRAP = 1;

env.VERGEN_BUILD_DATE = "2024-09-30"; # managed via the update script
env.VERGEN_BUILD_DATE = "2024-10-13"; # managed via the update script
env.VERGEN_GIT_DESCRIBE = "Nixpkgs";

passthru.updateScript.command = [ ./update.sh ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vi/viddy/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ update-source-version viddy "${latestVersion}"

pushd "$SCRIPT_DIR"
# Build date
sed -i 's#env.VERGEN_BUILD_DATE = "[^"]*"#env.VERGEN_BUILD_DATE = "'"${latestBuildDate}"'"#' default.nix
sed -i 's#env.VERGEN_BUILD_DATE = "[^"]*"#env.VERGEN_BUILD_DATE = "'"${latestBuildDate}"'"#' package.nix

# Hashes
# https://github.com/msteen/nix-prefetch/issues/51
cargoHash=$(nix-prefetch --option extra-experimental-features flakes "{ sha256 }: (import $NIXPKGS_DIR {}).viddy.cargoDeps.overrideAttrs (_: { outputHash = sha256; })")
sed -i -E 's#\bcargoHash = ".*?"#cargoHash = "'"$cargoHash"'"#' default.nix
sed -i -E 's#\bcargoHash = ".*?"#cargoHash = "'"$cargoHash"'"#' package.nix
popd

0 comments on commit ac9bfb8

Please sign in to comment.