mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
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.
32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, libmatchbox, libX11, libXext }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "matchbox";
|
|
version = "1.2";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libmatchbox ];
|
|
NIX_LDFLAGS = "-lX11 -L${libX11}/lib -lXext -L${libXext}/lib";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.yoctoproject.org/releases/matchbox/matchbox-window-manager/${version}/matchbox-window-manager-${version}.tar.bz2";
|
|
sha256 = "1zyfq438b466ygcz78nvsmnsc5bhg4wcfnpxb43kbkwpyx53m8l1";
|
|
};
|
|
|
|
patches = [
|
|
# Pull upstream fix for -fno-common tollchains:
|
|
(fetchpatch {
|
|
name = "fno-common.patch";
|
|
url = "https://git.yoctoproject.org/matchbox-window-manager/patch/?id=844f61069896fe3f549ab425d731c061028f697c";
|
|
sha256 = "1md2s7q094hn4gzg21pfyz8d426y07d5rbx2icas9nvc8jj7bwfc";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "X window manager for non-desktop embedded systems";
|
|
homepage = "https://www.yoctoproject.org/software-item/matchbox/";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|