mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
53998f5036
It's now the default. /cc #19456 This makes a real build simplification, because in our current bootstrapping+aliases, `gcc6` attribute is not the default compiler but a derivation *built by* the default compiler. nix-exec didn't build before this commit already
22 lines
608 B
Nix
22 lines
608 B
Nix
{ stdenv, fetchurl, pkgconfig, nix, git }: let
|
|
version = "4.1.6";
|
|
in stdenv.mkDerivation {
|
|
name = "nix-exec-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/shlevy/nix-exec/releases/download/v${version}/nix-exec-${version}.tar.xz";
|
|
sha256 = "0slpsnzzzdkf5d9za7j4kr15jr4mn1k9klfsxibzy47b2bx1vkar";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig 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;
|
|
};
|
|
}
|