stockholm/krebs/5pkgs/simple/posix-array/default.nix

31 lines
664 B
Nix
Raw Normal View History

2016-02-07 23:43:24 +00:00
{ fetchgit, lib, stdenv, ... }:
2015-08-16 11:40:00 +00:00
2016-02-07 23:43:24 +00:00
stdenv.mkDerivation rec {
name = "posix-array-${version}";
2015-08-16 11:40:00 +00:00
version = "1.0.0";
src = fetchgit {
url = https://github.com/makefu/array.git;
rev = "refs/tags/${version}";
sha256 = "0yzwlhdg1rgc4p64ny7gj30l7z6vikhskhppsa2qj7s9gm2gz938";
};
phases = [
"unpackPhase"
"installPhase"
];
installPhase = ''
2016-02-07 23:43:24 +00:00
mkdir -p $out/bin
2015-08-16 11:40:00 +00:00
cp -a ./array $out/bin
'';
meta = {
2016-02-07 23:43:24 +00:00
description = "POSIX-compliant array implementation";
2015-08-16 11:40:00 +00:00
url = https://github.com/makefu/array;
2016-02-07 23:43:24 +00:00
license = lib.licenses.wtfpl;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ makefu ];
2015-08-16 11:40:00 +00:00
};
}