nixpkgs/pkgs/by-name/li/libsciter/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

46 lines
1017 B
Nix

{ lib
, glib
, cairo
, libuuid
, pango
, gtk3
, stdenv
, fetchurl
, autoPatchelfHook
}:
stdenv.mkDerivation {
pname = "libsciter";
version = "4.4.8.23-bis"; # Version specified in GitHub commit title
src = fetchurl {
url = "https://github.com/c-smile/sciter-sdk/raw/9f1724a45f5a53c4d513b02ed01cdbdab08fa0e5/bin.lnx/x64/libsciter-gtk.so";
sha256 = "a1682fbf55e004f1862d6ace31b5220121d20906bdbf308d0a9237b451e4db86";
};
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [ glib cairo libuuid pango gtk3 ];
dontUnpack = true;
installPhase = ''
runHook preInstall
install -m755 -D $src $out/lib/libsciter-gtk.so
runHook postInstall
'';
meta = with lib; {
homepage = "https://sciter.com";
description = "Embeddable HTML/CSS/JavaScript engine for modern UI development";
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ leixb ];
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
};
}