many changes i made in the last weeks
This commit is contained in:
25
mods/nurPkgs/mcping.nix
Normal file
25
mods/nurPkgs/mcping.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
pname = "mcping";
|
||||
version = "1.2.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "theodik";
|
||||
repo = "mcping";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-miCRVDyyNM9MITnHdYZYpYpvKWx5n8ZvzNF9zvpZt9k=";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
gcc mcping.c -o mcping
|
||||
mkdir -p $out/bin
|
||||
cp mcping $out/bin/
|
||||
'';
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "A simple C program to ping Minecraft servers";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user