nixpkgs/pkgs/by-name/hy/hyena/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

42 lines
1.4 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, mono, gtk-sharp-2_0, monoDLLFixer }:
stdenv.mkDerivation rec {
pname = "hyena";
version = "0.5";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "eb7154a42b6529bb9746c39272719f3168d6363ed4bad305a916ed7d90bc8de9";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
mono gtk-sharp-2_0
];
postPatch = ''
patchShebangs build/dll-map-makefile-verifier
patchShebangs build/private-icon-theme-installer
substituteInPlace configure --replace lib/mono/2.0/ lib/mono/2.0-api/
find -name Makefile.in | xargs -n 1 -d '\n' sed -e 's/^dnl/#/' -i
'';
dontStrip = true;
inherit monoDLLFixer;
meta = with lib; {
homepage = "https://gitlab.gnome.org/Archive/hyena";
description = "C# library which contains a hodge-podge of random stuff";
longDescription = ''
Hyena is a C# library used to make awesome applications. It contains a lot of random things,
including useful data structures, a Sqlite-based db layer, cool widgets, a JSON library,
a smart job/task scheduler, a user-query/search parser, and much more. It's particularly
useful for Gtk# applications, though only the Hyena.Gui assembly requires Gtk#.
'';
platforms = platforms.all;
maintainers = with maintainers; [ obadz ];
license = licenses.mit;
};
}