2017-09-03 07:58:57 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, nix, git }: let
|
2017-01-31 17:02:46 +00:00
|
|
|
version = "4.1.6";
|
2014-09-28 20:24:38 +01:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "nix-exec";
|
|
|
|
inherit version;
|
2014-09-28 20:24:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/shlevy/nix-exec/releases/download/v${version}/nix-exec-${version}.tar.xz";
|
2017-01-31 17:02:46 +00:00
|
|
|
sha256 = "0slpsnzzzdkf5d9za7j4kr15jr4mn1k9klfsxibzy47b2bx1vkar";
|
2014-09-28 20:24:38 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ nix git ];
|
2017-03-30 14:48:24 +01:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-std=c++1y";
|
2014-09-28 20:24:38 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Run programs defined in nix expressions";
|
|
|
|
homepage = https://github.com/shlevy/nix-exec;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-09-29 01:10:11 +01:00
|
|
|
platforms = nix.meta.platforms;
|
2017-11-29 00:20:34 +00:00
|
|
|
broken = true;
|
2014-09-28 20:24:38 +01:00
|
|
|
};
|
|
|
|
}
|