Unverified Commit 508a8e68 authored by éclairevoyant's avatar éclairevoyant Committed by GitHub
Browse files

Merge pull request #308314 from OPNA2608/fix/stableVersion/pkgs-devtools

 pkgs/development/tools: Fix some unstableGitUpdater users
parents 7e17df3d 211af0d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@

stdenv.mkDerivation rec {
  pname = "tartan";
  version = "unstable-2021-12-23";
  version = "0.3.0-unstable-2021-12-23";

  src = fetchFromGitLab {
    domain = "gitlab.freedesktop.org";
+3 −3
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@

buildGoModule rec {
  pname = "goperf";
  version = "unstable-2023-11-08";
  version = "0-unstable-2023-11-08";

  src = fetchgit {
    url = "https://go.googlesource.com/perf";
@@ -22,8 +22,8 @@ buildGoModule rec {
    export UPDATE_NIX_ATTR_PATH=goperf
    ${lib.escapeShellArgs (unstableGitUpdater { inherit (src) url; })}
    set -x
    oldhash="$(nix-instantiate . --eval --strict -A "goperf.go-modules.drvAttrs.outputHash" | cut -d'"' -f2)"
    newhash="$(nix-build -A goperf.go-modules --no-out-link 2>&1 | tail -n3 | grep 'got:' | cut -d: -f2- | xargs echo || true)"
    oldhash="$(nix-instantiate . --eval --strict -A "goperf.goModules.drvAttrs.outputHash" | cut -d'"' -f2)"
    newhash="$(nix-build -A goperf.goModules --no-out-link 2>&1 | tail -n3 | grep 'got:' | cut -d: -f2- | xargs echo || true)"
    fname="$(nix-instantiate --eval -E 'with import ./. {}; (builtins.unsafeGetAttrPos "version" goperf).file' | cut -d'"' -f2)"
    ${lib.getExe sd} --string-mode "$oldhash" "$newhash" "$fname"
  '';
+3 −0
Original line number Diff line number Diff line
@@ -24,6 +24,9 @@ llvmPackages.stdenv.mkDerivation {
  passthru.updateScript = unstableGitUpdater {
    url = "https://github.com/rpav/c2ffi.git";
    branch = c2ffiBranch;
    # Tags only exist for older LLVM versions, so they would result in nonsense names
    # like: c2ffi-llvm-16.0.0-11.0.0.0-unstable-YYYY-MM-DD
    hardcodeZeroVersion = true;
  };

  nativeBuildInputs = [
+8 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

luarocks.overrideAttrs (old: {
  pname = "luarocks-nix";
  version = "unstable-2023-10-19";
  version = "0-unstable-2023-10-19";

  src = fetchFromGitHub {
    owner = "nix-community";
@@ -14,10 +14,15 @@ luarocks.overrideAttrs (old: {
  patches = [ ];

  passthru = {
    updateScript = unstableGitUpdater { };
    updateScript = unstableGitUpdater {
      # tags incompletely inherited from regular luarocks
      hardcodeZeroVersion = true;
    };
  };

  meta = old.meta // {
  # old.meta // { /* ... */ } doesn't update meta.position, which breaks the updateScript
  meta = {
    inherit (old.meta) description license maintainers platforms;
    mainProgram = "luarocks";
  };
})
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

stdenv.mkDerivation rec {
  pname = "patchelf";
  version = "unstable-2024-01-15";
  version = "0.18.0-unstable-2024-01-15";

  src = fetchFromGitHub {
    owner = "NixOS";
Loading