map: init at 0.1.1

This commit is contained in:
Tim Schubert 2022-10-23 15:36:05 +02:00
parent c00a6f612a
commit c4ed80d667
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
3 changed files with 40 additions and 0 deletions

View file

@ -42,6 +42,8 @@
}; };
}; };
}); });
packages = import ./pkgs (inputs // { inherit pkgs; });
})) }))
// { // {

6
pkgs/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs
, ...
} @ inputs:
{
map = pkgs.callPackage ./map.nix { };
}

32
pkgs/map.nix Normal file
View 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 ];
};
}