diff --git a/pkgs/games/amoeba/data.nix b/pkgs/by-name/am/amoeba-data/package.nix similarity index 59% rename from pkgs/games/amoeba/data.nix rename to pkgs/by-name/am/amoeba-data/package.nix index fcffe73b1d62..2803d8d46728 100644 --- a/pkgs/games/amoeba/data.nix +++ b/pkgs/by-name/am/amoeba-data/package.nix @@ -4,13 +4,13 @@ fetchurl, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "amoeba-data"; version = "1.1"; src = fetchurl { - url = "http://http.debian.net/debian/pool/non-free/a/amoeba-data/amoeba-data_${version}.orig.tar.gz"; - sha256 = "1bgclr1v63n14bj9nwzm5zxg48nm0cla9bq1rbd5ylxra18k0jbg"; + url = "http://http.debian.net/debian/pool/non-free/a/amoeba-data/amoeba-data_${finalAttrs.version}.orig.tar.gz"; + hash = "sha256-b0kwUVC5U1/aygGvpCgD1SLy+i/1c5vkIsEOs0Om7K0="; }; installPhase = '' @@ -18,11 +18,11 @@ stdenv.mkDerivation rec { cp demo.dat $out/share/amoeba/ ''; - meta = with lib; { + meta = { description = "Fast-paced, polished OpenGL demonstration by Excess (data files)"; homepage = "https://packages.qa.debian.org/a/amoeba-data.html"; - license = licenses.unfree; - maintainers = [ maintainers.dezgeg ]; - platforms = platforms.all; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ dezgeg ]; + platforms = lib.platforms.all; }; -} +}) diff --git a/pkgs/games/amoeba/include-string-h.patch b/pkgs/by-name/am/amoeba/include-string-h.patch similarity index 100% rename from pkgs/games/amoeba/include-string-h.patch rename to pkgs/by-name/am/amoeba/include-string-h.patch diff --git a/pkgs/games/amoeba/default.nix b/pkgs/by-name/am/amoeba/package.nix similarity index 80% rename from pkgs/games/amoeba/default.nix rename to pkgs/by-name/am/amoeba/package.nix index 274e91ba33dc..3b77d67bda29 100644 --- a/pkgs/games/amoeba/default.nix +++ b/pkgs/by-name/am/amoeba/package.nix @@ -14,18 +14,18 @@ installShellFiles, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "amoeba"; version = "1.1"; debver = "31"; srcs = [ (fetchurl { - url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${version}.orig.tar.gz"; + url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${finalAttrs.version}.orig.tar.gz"; hash = "sha256-NT6oMuAlTcVZEnYjMCF+BD+k3/w7LfWEmj6bkQln3sM="; }) (fetchurl { - url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${version}-${debver}.debian.tar.xz"; + url = "http://http.debian.net/debian/pool/contrib/a/amoeba/amoeba_${finalAttrs.version}-${finalAttrs.debver}.debian.tar.xz"; hash = "sha256-Ga/YeXbPXjkG/6qd9Z201d14Hlj/Je6DxgzeIQOqrWc="; }) ]; @@ -60,11 +60,11 @@ stdenv.mkDerivation rec { installManPage ../debian/amoeba.1 ''; - meta = with lib; { + meta = { description = "Fast-paced, polished OpenGL demonstration by Excess"; homepage = "https://packages.qa.debian.org/a/amoeba.html"; - license = licenses.gpl2Only; # Engine is GPLv2, data files in amoeba-data nonfree - maintainers = [ maintainers.dezgeg ]; - platforms = platforms.linux; + license = lib.licenses.gpl2Only; # Engine is GPLv2, data files in amoeba-data nonfree + maintainers = with lib.maintainers; [ dezgeg ]; + platforms = lib.platforms.linux; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d046600c39c2..2cfa347662ef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13282,9 +13282,6 @@ with pkgs; qgo = libsForQt5.callPackage ../games/qgo { }; - amoeba = callPackage ../games/amoeba { }; - amoeba-data = callPackage ../games/amoeba/data.nix { }; - anki = callPackage ../games/anki { protobuf = protobuf_31; };