fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 xorgproto,
7 writeScript,
8}:
9stdenv.mkDerivation (finalAttrs: {
10 pname = "bdftopcf";
11 version = "1.1.2";
12
13 src = fetchurl {
14 url = "mirror://xorg/individual/util/bdftopcf-${finalAttrs.version}.tar.xz";
15 hash = "sha256-vGC+WQQzD6qj3dKu14dL7i8p5Dh8JF1nh1UvBn6wUjo=";
16 };
17
18 strictDeps = true;
19
20 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ xorgproto ];
22
23 passthru = {
24 updateScript = writeScript "update-${finalAttrs.pname}" ''
25 #!/usr/bin/env nix-shell
26 #!nix-shell -i bash -p common-updater-scripts
27 version="$(list-directory-versions --pname ${finalAttrs.pname} \
28 --url https://xorg.freedesktop.org/releases/individual/util/ \
29 | sort -V | tail -n1)"
30 update-source-version ${finalAttrs.pname} "$version"
31 '';
32 };
33
34 meta = {
35 description = "Converts X font from Bitmap Distribution Format to Portable Compiled Format";
36 homepage = "https://gitlab.freedesktop.org/xorg/util/bdftopcf";
37 license = lib.licenses.mitOpenGroup;
38 mainProgram = "bdftopcf";
39 maintainers = [ ];
40 platforms = lib.platforms.unix;
41 };
42})