diff --git a/pkgs/development/libraries/isa-l/default.nix b/pkgs/by-name/is/isa-l/package.nix similarity index 76% rename from pkgs/development/libraries/isa-l/default.nix rename to pkgs/by-name/is/isa-l/package.nix index ea4a682f05f6..29248952f91b 100644 --- a/pkgs/development/libraries/isa-l/default.nix +++ b/pkgs/by-name/is/isa-l/package.nix @@ -2,21 +2,29 @@ lib, stdenv, fetchFromGitHub, - runCommand, - autoreconfHook, - nix, + + # nativeBuildInputs nasm, + autoreconfHook, + + versionCheckHook, + + # passthru + runCommand, + nix, + pkgs, + gitUpdater, }: stdenv.mkDerivation (finalAttrs: { pname = "isa-l"; - version = "2.31.0-unstable-2024-04-25"; + version = "2.31.1"; src = fetchFromGitHub { owner = "intel"; repo = "isa-l"; - rev = "dbaf284e112bea1b90983772a3164e794b923aaf"; - sha256 = "sha256-eM1K3uObb4eZq0nSfafltp5DuZIDwknUYj9CdLn14lY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-pv0Aq1Yp/NkGN7KXJ4oQMSG36k5v9YnsELuATl86Zp4="; }; nativeBuildInputs = [ @@ -28,6 +36,13 @@ stdenv.mkDerivation (finalAttrs: { export AS=nasm ''; + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/igzip"; + versionCheckProgramArg = [ "--version" ]; + doInstallCheck = true; + passthru = { tests = { igzip = @@ -42,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ nix ]; } '' - nix nar --extra-experimental-features nix-command pack ${../../../../lib} > "$out" + nix nar --extra-experimental-features nix-command pack ${pkgs.path + "/lib"} > "$out" ''; meta = { description = "Cross validation of igzip provided by isa-l with gzip"; @@ -68,6 +83,7 @@ stdenv.mkDerivation (finalAttrs: { touch "$out" ''; }; + updateScript = gitUpdater { rev-prefix = "v"; }; }; meta = { @@ -75,7 +91,13 @@ stdenv.mkDerivation (finalAttrs: { mainProgram = "igzip"; license = lib.licenses.bsd3; homepage = "https://github.com/intel/isa-l"; + changelog = "https://github.com/intel/isa-l/releases/tag/v${finalAttrs.version}"; maintainers = with lib.maintainers; [ jbedo ]; platforms = lib.platforms.all; + badPlatforms = [ + # :4:26: error: unexpected token in argument list + # movk x7, p4_low_b1, lsl 16 + "aarch64-darwin" + ]; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 678148fc1606..61928e8ecad8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8679,8 +8679,6 @@ with pkgs; hci = callPackage ../development/tools/continuous-integration/hci { }; - isa-l = callPackage ../development/libraries/isa-l { }; - niv = lib.getBin (haskell.lib.compose.justStaticExecutables haskellPackages.niv); ormolu = lib.getBin (haskell.lib.compose.justStaticExecutables haskellPackages.ormolu);