summary refs log tree commit diff
path: root/pkgs/development/interpreters/nix-exec/default.nix
blob: 0c976f2f0b058e3fe72da2e0222f8c8531e70fcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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;
  };
}