depot/third_party/nixpkgs/pkgs/development/interpreters/nix-exec/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
665 B
Nix

{ stdenv, fetchurl, pkgconfig, nix, git }: let
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";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ nix git ];
NIX_CFLAGS_COMPILE = "-std=c++1y";
meta = {
description = "Run programs defined in nix expressions";
homepage = "https://github.com/shlevy/nix-exec";
license = stdenv.lib.licenses.mit;
platforms = nix.meta.platforms;
broken = true;
};
}