1{ stdenv, fetchurl, pkgconfig, nix, git }: let
2 version = "4.1.2";
3in stdenv.mkDerivation {
4 name = "nix-exec-${version}";
5
6 src = fetchurl {
7 url = "https://github.com/shlevy/nix-exec/releases/download/v${version}/nix-exec-${version}.tar.xz";
8
9 sha256 = "03dphdkf33zi2wm92wghfvadghljh6q1a9zdj9rcbx2jh7fp3k8y";
10 };
11
12 buildInputs = [ pkgconfig nix git ];
13
14 meta = {
15 description = "Run programs defined in nix expressions";
16
17 homepage = https://github.com/shlevy/nix-exec;
18
19 license = stdenv.lib.licenses.mit;
20
21 platforms = nix.meta.platforms;
22 };
23}