2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, nix, git }: let
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "4.1.6";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "nix-exec";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/shlevy/nix-exec/releases/download/v${version}/nix-exec-${version}.tar.xz";
|
|
|
|
sha256 = "0slpsnzzzdkf5d9za7j4kr15jr4mn1k9klfsxibzy47b2bx1vkar";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ nix git ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-std=c++1y";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Run programs defined in nix expressions";
|
|
|
|
homepage = "https://github.com/shlevy/nix-exec";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = nix.meta.platforms;
|
|
|
|
broken = true;
|
|
|
|
};
|
|
|
|
}
|