mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 05:31:22 +00:00
9842c4b107
Idea shamelessly stolen from 4e60b0efae
.
I realized that I don't really know anymore where I'm listed as maintainer and what
I'm actually (co)-maintaining which means that I can't proactively take
care of packages I officially maintain.
As I don't have the time, energy and motivation to take care of stuff I
was interested in 1 or 2 years ago (or packaged for someone else in the
past), I decided that I make this explicit by removing myself from several
packages and adding myself in some other stuff I'm now interested in.
I've seen it several times now that people remove themselves from a
package without removing the package if it's unmaintained after that
which is why I figured that it's fine in my case as the affected pkgs
are rather low-prio and were pretty easy to maintain.
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, pkgs, makeWrapper, buildEnv
|
|
, nodejs, runtimeShell
|
|
}:
|
|
|
|
let
|
|
nodePackages = import ./node.nix {
|
|
inherit pkgs;
|
|
system = stdenv.hostPlatform.system;
|
|
};
|
|
|
|
runtimeEnv = buildEnv {
|
|
name = "airfield-runtime";
|
|
paths = with nodePackages; [
|
|
nodePackages."express-3.0.5" nodePackages."swig-0.14.0"
|
|
nodePackages."consolidate-0.10.0" redis connect-redis
|
|
async request
|
|
];
|
|
};
|
|
|
|
name = "airfield-${version}";
|
|
version = "2015-01-04";
|
|
|
|
src = stdenv.mkDerivation {
|
|
name = "${name}-src";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "emblica";
|
|
repo = "airfield";
|
|
rev = "f021b19a35be3db9be7780318860f3b528c48641";
|
|
sha256 = "1xk69x89kgg98hm7c2ysyfmg7pkvgkpg4wym6v5cmdkdid08fsgs";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -R . $out
|
|
'';
|
|
};
|
|
in stdenv.mkDerivation {
|
|
inherit name version src;
|
|
|
|
buildInputs = [ makeWrapper nodejs ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cat >$out/bin/airfield <<EOF
|
|
#!${runtimeShell}
|
|
${nodejs}/bin/node ${src}/airfield.js
|
|
EOF
|
|
'';
|
|
|
|
postFixup = ''
|
|
chmod +x $out/bin/airfield
|
|
wrapProgram $out/bin/airfield \
|
|
--set NODE_PATH "${runtimeEnv}/lib/node_modules"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A web-interface for hipache-proxy";
|
|
license = licenses.mit;
|
|
homepage = https://github.com/emblica/airfield;
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|