1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/development/interpreters/nix-exec/default.nix
2021-01-23 20:29:03 +07:00

25 lines
665 B
Nix

{ lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config ];
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 = lib.licenses.mit;
platforms = nix.meta.platforms;
broken = true;
};
}