From 69b0ba26342deb11f84b2ed00947d38e1d3aa11e Mon Sep 17 00:00:00 2001 From: Joachim Fasting Date: Thu, 3 Mar 2016 18:54:59 +0100 Subject: [PATCH] space-orbit: port to mkDerivation Also - rename to space-orbit - use mirror://debian - add some meta information See also #4210 --- pkgs/games/orbit/default.nix | 44 ----------------------------- pkgs/games/space-orbit/default.nix | 45 ++++++++++++++++++++++++++++++ pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 +- 4 files changed, 47 insertions(+), 45 deletions(-) delete mode 100644 pkgs/games/orbit/default.nix create mode 100644 pkgs/games/space-orbit/default.nix diff --git a/pkgs/games/orbit/default.nix b/pkgs/games/orbit/default.nix deleted file mode 100644 index de4c84f010cd..000000000000 --- a/pkgs/games/orbit/default.nix +++ /dev/null @@ -1,44 +0,0 @@ -{ stdenv, fetchurl, builderDefs, mesa, libXi, libXt, libXext, libX11 -, libXmu, freeglut }: - -with builderDefs; - let localDefs = builderDefs.passthru.function (rec { - src = /* put a fetchurl here */ - fetchurl { - sha256 = "1kx69f9jqnfzwjh47cl1df8p8hn3bnp6bznxnb6c4wx32ijn5gri"; - url = http://ftp.de.debian.org/debian/pool/main/s/space-orbit/space-orbit_1.01.orig.tar.gz; - }; - - buildInputs = [mesa libXi libXt libXext libX11 libXmu freeglut]; - configureFlags = []; - debianPatch = - fetchurl { - url = http://ftp.de.debian.org/debian/pool/main/s/space-orbit/space-orbit_1.01-9.diff.gz; - sha256 = "1v3s97day6fhv08l2rn81waiprhi1lfyjjsj55axfh6n6zqfn1w2"; - }; - customBuild = fullDepEntry ('' - gunzip < ${debianPatch} | patch -Np1 - cd src - sed -e 's@/usr/share/games/orbit/@'$out'/dump/@g' -i *.c - sed -e '/DIR=/d; s/-lesd//; s/-DESD//;' -i Makefile - make - mkdir -p $out/bin - cp -r .. $out/dump - cat >$out/bin/space-orbit <$out/bin/space-orbit <