map: init at 0.1.1
This commit is contained in:
parent
c00a6f612a
commit
c4ed80d667
3 changed files with 40 additions and 0 deletions
|
@ -42,6 +42,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
packages = import ./pkgs (inputs // { inherit pkgs; });
|
||||||
}))
|
}))
|
||||||
// {
|
// {
|
||||||
|
|
||||||
|
|
6
pkgs/default.nix
Normal file
6
pkgs/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{ pkgs
|
||||||
|
, ...
|
||||||
|
} @ inputs:
|
||||||
|
{
|
||||||
|
map = pkgs.callPackage ./map.nix { };
|
||||||
|
}
|
32
pkgs/map.nix
Normal file
32
pkgs/map.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib, stdenv, fetchFromGitHub }:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "map";
|
||||||
|
version = "0.1.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "soveran";
|
||||||
|
repo = pname;
|
||||||
|
rev = "0.1.1";
|
||||||
|
sha256 = "sha256-yGzmhZwv1qKy0JNcSzqL996APQO8OGWQ1GBkEkKTOXA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
makefile = "makefile";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
export PREFIX="$out";
|
||||||
|
mkdir -p "$out"
|
||||||
|
make install
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
make test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Map lines from stdin to commands";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
homepage = "https://github.com/soveran/map";
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ dadada ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue