nixpkgs/pkgs/by-name/st/stderred/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

32 lines
631 B
Nix

{ stdenv
, fetchFromGitHub
, cmake
, lib
}:
stdenv.mkDerivation rec {
pname = "stderred";
version = "unstable-2021-04-28";
src = fetchFromGitHub {
owner = "sickill";
repo = "stderred";
rev = "b2238f7c72afb89ca9aaa2944d7f4db8141057ea";
sha256 = "sha256-k/EA327AsRHgUYu7QqSF5yzOyO6h5XcE9Uv4l1VcIPI=";
};
nativeBuildInputs = [
cmake
];
sourceRoot = "${src.name}/src";
meta = with lib; {
description = "stderr in red";
homepage = "https://github.com/sickill/stderred";
license = licenses.mit;
maintainers = with maintainers; [ vojta001 ];
platforms = platforms.unix;
};
}