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.
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib, stdenv, fetchurl, pkg-config, glib, python3, gtk2, readline,
|
|
copyDesktopItems, makeDesktopItem }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnubg";
|
|
version = "1.07.001";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gnubg/gnubg-release-${version}-sources.tar.gz";
|
|
hash = "sha256-cjmXKUGcrZ8RLDBmoS0AANpFCkVq3XsJTYkVUGnWgh4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ copyDesktopItems pkg-config python3 glib ];
|
|
|
|
buildInputs = [ gtk2 readline ];
|
|
|
|
strictDeps = true;
|
|
|
|
configureFlags = [ "--with-gtk" "--with--board3d" ];
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
desktopName = "GNU Backgammon";
|
|
name = pname;
|
|
genericName = "Backgammon";
|
|
comment = meta.description;
|
|
exec = pname;
|
|
icon = pname;
|
|
categories = [ "Game" "GTK" "StrategyGame" ];
|
|
})
|
|
];
|
|
|
|
meta = with lib;
|
|
{ description = "World class backgammon application";
|
|
homepage = "https://www.gnu.org/software/gnubg/";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.ehmry ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|