···11+{
22+ lib,
33+ stdenv,
44+ fetchurl,
55+ testers,
66+ writeScript,
77+}:
88+99+stdenv.mkDerivation (finalAttrs: {
1010+ pname = "font-util";
1111+ version = "1.4.1";
1212+1313+ src = fetchurl {
1414+ url = "mirror://xorg/individual/font/font-util-${finalAttrs.version}.tar.xz";
1515+ hash = "sha256-XJ9kEjwZSxUP7okEmZFoc4bm/zbvKve4C6U++vNozJU=";
1616+ };
1717+1818+ passthru = {
1919+ updateScript = writeScript "update-${finalAttrs.pname}" ''
2020+ #!/usr/bin/env nix-shell
2121+ #!nix-shell -i bash -p common-updater-scripts
2222+2323+ version="$(list-directory-versions --pname ${finalAttrs.pname} \
2424+ --url https://xorg.freedesktop.org/releases/individual/font/ \
2525+ | sort -V | tail -n1)"
2626+2727+ update-source-version ${finalAttrs.pname} "$version"
2828+ '';
2929+ tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
3030+ };
3131+3232+ meta = {
3333+ description = "X.Org font package creation/installation utilities";
3434+ homepage = "https://gitlab.freedesktop.org/xorg/font/util";
3535+ license = with lib.licenses; [
3636+ mit
3737+ bsd2
3838+ bsdSourceCode
3939+ mitOpenGroup
4040+ # there is a bit of a diff, but i think its close enough
4141+ # it was probably just adapted a bit to fit to the repository structure
4242+ # or its an older version that the one on spdx
4343+ unicodeTOU
4444+ ];
4545+ maintainers = [ ];
4646+ pkgConfigModules = [ "fontutil" ];
4747+ platforms = lib.platforms.unix;
4848+ };
4949+})
+59
pkgs/by-name/gc/gccmakedep/package.nix
···11+{
22+ lib,
33+ stdenv,
44+ fetchurl,
55+ writeScript,
66+}:
77+88+stdenv.mkDerivation (finalAttrs: {
99+ pname = "gccmakedep";
1010+ version = "1.0.4";
1111+1212+ src = fetchurl {
1313+ url = "mirror://xorg/individual/util/gccmakedep-${finalAttrs.version}.tar.xz";
1414+ hash = "sha256-UIj5h2n7Y8Mm6bnSy3yfSmMKKAHdHaBpcdCCkXbPJbY=";
1515+ };
1616+1717+ passthru.updateScript = writeScript "update-${finalAttrs.pname}" ''
1818+ #!/usr/bin/env nix-shell
1919+ #!nix-shell -i bash -p common-updater-scripts
2020+2121+ version="$(list-directory-versions --pname ${finalAttrs.pname} \
2222+ --url https://xorg.freedesktop.org/releases/individual/util/ \
2323+ | sort -V | tail -n1)"
2424+2525+ update-source-version ${finalAttrs.pname} "$version"
2626+ '';
2727+2828+ meta = {
2929+ description = "Creates dependencies in makefiles using 'gcc -M'";
3030+ homepage = "https://gitlab.freedesktop.org/xorg/util/gccmakedep";
3131+ license = with lib.licenses; [
3232+ # COPYING file suggests looking at the Copyright headers of every file:
3333+ # upstream issue: https://gitlab.freedesktop.org/xorg/util/gccmakedep/-/issues/1
3434+3535+ # 1. build system files Copyright Red Hat
3636+ hpndSellVariant
3737+3838+ # 2. gccmakedep.man was written by Colin Watson for Debian somewhen
3939+ # earlier than November 2003. While I wasn't able to trace the exact
4040+ # source, between 1997 and 2004 the "Debian Social Contract, Version
4141+ # 1.0" was in effect, which requires all components of the Debian
4242+ # Operating System to be free software, which includes this man page.
4343+ # https://www.debian.org/social_contract.1.0
4444+ free
4545+4646+ # 3. gccmakedep.in, originally named gccmdep.cpp was copied from the
4747+ # XFree86 project around 2000. While it states to be "Based on
4848+ # mdepend.cpp and code supplied by Hongjiu Lu", that doesn't matter
4949+ # because it was supposedly completely rewritten by XFree86.
5050+ # XFree86 code without any explicit Copyright Statement is under X11.
5151+ x11
5252+5353+ # 4. some files don't have any license info, but they are all trivial
5454+ ];
5555+ mainProgram = "gccmakedep";
5656+ maintainers = [ ];
5757+ platforms = lib.platforms.unix;
5858+ };
5959+})