Skip to content

Commit

Permalink
sparse: move to by-name and modernize
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Carter Edwards <[email protected]>
  • Loading branch information
ethancedwards8 committed Feb 1, 2025
1 parent 5cb096a commit 05a4ce4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
let
GCC_BASE = "${stdenv.cc.cc}/lib/gcc/${stdenv.hostPlatform.uname.processor}-unknown-linux-gnu/${stdenv.cc.cc.version}";
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "sparse";
version = "0.6.4";

src = fetchurl {
url = "mirror://kernel/software/devel/sparse/dist/${pname}-${version}.tar.xz";
url = "mirror://kernel/software/devel/sparse/dist/${finalAttrs.pname}-${finalAttrs.version}.tar.xz";
sha256 = "sha256-arKLSZG8au29c1UCkTYKpqs99B9ZIGqb3paQIIpuOHw=";
};

Expand Down Expand Up @@ -55,14 +55,14 @@ stdenv.mkDerivation rec {
simple-execution = callPackage ./tests.nix { };
};

meta = with lib; {
meta = {
description = "Semantic parser for C";
homepage = "https://git.kernel.org/pub/scm/devel/sparse/sparse.git/";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
thoughtpolice
jkarlson
];
};
}
})
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8281,7 +8281,7 @@ with pkgs;

snowman = qt5.callPackage ../development/tools/analysis/snowman { };

sparse = callPackage ../development/tools/analysis/sparse {
sparse = callPackage ../by-name/sp/sparse/package.nix {
llvm = llvm_14;
};

Expand Down

0 comments on commit 05a4ce4

Please sign in to comment.