Merge pull request #155254 from Stunkymonkey/n2048-refactor
n2048: refactor
This commit is contained in:
commit
c40452ecac
1 changed files with 11 additions and 20 deletions
|
@ -1,35 +1,26 @@
|
|||
{lib, stdenv, fetchurl, ncurses}:
|
||||
let
|
||||
s =
|
||||
rec {
|
||||
baseName = "n2048";
|
||||
version = "0.1";
|
||||
name = "${baseName}-${version}";
|
||||
url = "http://www.dettus.net/n2048/${baseName}_v${version}.tar.gz";
|
||||
{ lib, stdenv, fetchurl, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "n2048";
|
||||
version = "0.1";
|
||||
src = fetchurl {
|
||||
url = "http://www.dettus.net/n2048/n2048_v${version}.tar.gz";
|
||||
sha256 = "184z2rr0rnj4p740qb4mzqr6kgd76ynb5gw9bj8hrfshcxdcg1kk";
|
||||
};
|
||||
buildInputs = [
|
||||
ncurses
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit (s) name version;
|
||||
inherit buildInputs;
|
||||
src = fetchurl {
|
||||
inherit (s) url sha256;
|
||||
};
|
||||
makeFlags = [
|
||||
"DESTDIR=$(out)"
|
||||
];
|
||||
preInstall = ''
|
||||
mkdir -p "$out"/{share/man,bin}
|
||||
'';
|
||||
meta = {
|
||||
inherit (s) version;
|
||||
meta = with lib; {
|
||||
description = "Console implementation of 2048 game";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [lib.maintainers.raskin];
|
||||
platforms = lib.platforms.linux;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
platforms = platforms.linux;
|
||||
homepage = "http://www.dettus.net/n2048/";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue