mirror of
https://github.com/schmittlauch/nur-packages
synced 2025-06-07 07:03:21 +02:00
lolcommits: init at 0.16.2
- initial lolcommits packaging done by fzakaria - mplayer with v4l webcam support taken from nixpkgs-unstable
This commit is contained in:
parent
53798d3241
commit
39b80ee20a
11 changed files with 469 additions and 13 deletions
4
pkgs/lolcommits/.gitignore
vendored
Normal file
4
pkgs/lolcommits/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
.direnv/
|
||||
vendor/
|
||||
result
|
||||
.bundle/
|
3
pkgs/lolcommits/Gemfile
Normal file
3
pkgs/lolcommits/Gemfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
source 'https://rubygems.org' do
|
||||
gem 'lolcommits'
|
||||
end
|
35
pkgs/lolcommits/Gemfile.lock
Normal file
35
pkgs/lolcommits/Gemfile.lock
Normal file
|
@ -0,0 +1,35 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
addressable (2.7.0)
|
||||
public_suffix (>= 2.0.2, < 5.0)
|
||||
git (1.6.0)
|
||||
rchardet (~> 1.8)
|
||||
launchy (2.4.3)
|
||||
addressable (~> 2.3)
|
||||
lolcommits (0.16.2)
|
||||
git (~> 1.6.0)
|
||||
launchy (~> 2.4.3)
|
||||
lolcommits-loltext (~> 0.4.0)
|
||||
mercurial-ruby (~> 0.7.12)
|
||||
methadone (~> 1.9.5)
|
||||
mini_magick (~> 4.10.1)
|
||||
open4 (~> 1.3.4)
|
||||
lolcommits-loltext (0.4.0)
|
||||
mercurial-ruby (0.7.12)
|
||||
open4 (~> 1.3.0)
|
||||
methadone (1.9.5)
|
||||
bundler
|
||||
mini_magick (4.10.1)
|
||||
open4 (1.3.4)
|
||||
public_suffix (4.0.6)
|
||||
rchardet (1.8.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
lolcommits!
|
||||
|
||||
BUNDLED WITH
|
||||
2.1.4
|
21
pkgs/lolcommits/LICENSE
Normal file
21
pkgs/lolcommits/LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2020 Farid Zakaria
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
24
pkgs/lolcommits/README.md
Normal file
24
pkgs/lolcommits/README.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# lolcommits
|
||||
|
||||
This is a [nixpkgs](https://nixos.org/) derivation for [lolcommits](https://github.com/lolcommits/lolcommits/).
|
||||
|
||||
It was written to help [this discourse post](https://discourse.nixos.org/t/wrapping-ruby-applications-into-custom-path/9148).
|
||||
|
||||
You can easily run it by issuing the following:
|
||||
|
||||
```bash
|
||||
nix run -f https://github.com/fzakaria/lolcommits/archive/master.tar.gz --command lolcommits
|
||||
|
||||
Do what exactly?
|
||||
Try: lolcommits --enable (when in a git repository)
|
||||
Or: lolcommits --help
|
||||
```
|
||||
|
||||
It includes all the necessary dependencies such as mplayer & imagemagick
|
||||
|
||||
```bash
|
||||
❯ cat ./result/bin/lolcommits
|
||||
#! /nix/store/j8vysakw78bpgngba32hfwwikqda9yx2-bash-4.4-p23/bin/bash -e
|
||||
export PATH='/nix/store/1dysm4zfzss74rw6vvhqbs623rxgygx4-mplayer-1.4/bin:/nix/store/z1fh9yz3mikpmdmxpnbs2i249477q5yf-imagemagick-6.9.11-14/bin'${PATH:+':'}$PATH
|
||||
exec -a "$0" "/nix/store/xjvpw6p1yqsid0fags6bya607hzd6ff8-lolcommits-0.16.2/bin/.lolcommits-wrapped" "$@"
|
||||
```
|
16
pkgs/lolcommits/default.nix
Normal file
16
pkgs/lolcommits/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ nixpkgs ? import <nixpkgs> { }, lib ? nixpkgs.lib, bundlerApp ? nixpkgs.bundlerApp
|
||||
, makeWrapper ? nixpkgs.makeWrapper, mplayer ? nixpkgs.mplayer
|
||||
, imagemagick ? nixpkgs.imagemagick }:
|
||||
|
||||
bundlerApp {
|
||||
pname = "lolcommits";
|
||||
gemdir = ./.;
|
||||
exes = [ "lolcommits" ];
|
||||
buildInputs = [ makeWrapper mplayer imagemagick ];
|
||||
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/lolcommits --prefix PATH : ${
|
||||
lib.makeBinPath [ mplayer imagemagick ]
|
||||
}
|
||||
'';
|
||||
}
|
126
pkgs/lolcommits/gemset.nix
Normal file
126
pkgs/lolcommits/gemset.nix
Normal file
|
@ -0,0 +1,126 @@
|
|||
{
|
||||
addressable = {
|
||||
dependencies = [ "public_suffix" ];
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.7.0";
|
||||
};
|
||||
git = {
|
||||
dependencies = [ "rchardet" ];
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "15sbv16dlap5d6naybl8cc99zffrpzygkhjz3m6l3r5y5yrhwwjc";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.6.0";
|
||||
};
|
||||
launchy = {
|
||||
dependencies = [ "addressable" ];
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "190lfbiy1vwxhbgn4nl4dcbzxvm049jwc158r2x7kq3g5khjrxa2";
|
||||
type = "gem";
|
||||
};
|
||||
version = "2.4.3";
|
||||
};
|
||||
lolcommits = {
|
||||
dependencies = [
|
||||
"git"
|
||||
"launchy"
|
||||
"lolcommits-loltext"
|
||||
"mercurial-ruby"
|
||||
"methadone"
|
||||
"mini_magick"
|
||||
"open4"
|
||||
];
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1qpjdl8np8xpw5v42331sqb628ldq300zaqg2z8iccxbrqjq240l";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.16.2";
|
||||
};
|
||||
lolcommits-loltext = {
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "0g1bpki6j8hzn22wh68m1gs881r4cis0vccxx1an3zq51hrrk2rf";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.4.0";
|
||||
};
|
||||
mercurial-ruby = {
|
||||
dependencies = [ "open4" ];
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "188zlrifrrlr88ls06f2mlji3ww9sm9rcfggfpraw547q4d44icj";
|
||||
type = "gem";
|
||||
};
|
||||
version = "0.7.12";
|
||||
};
|
||||
methadone = {
|
||||
dependencies = [ ];
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1dwhlljmrv9r857jv1wnp963hmfnldjdvyqg0mwi8rsibnc30fj8";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.9.5";
|
||||
};
|
||||
mini_magick = {
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "0lpq12z70n10c1qshcddd5nib2pkcbkwzvmiqqzj60l01k3x4fg9";
|
||||
type = "gem";
|
||||
};
|
||||
version = "4.10.1";
|
||||
};
|
||||
open4 = {
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.3.4";
|
||||
};
|
||||
public_suffix = {
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1xqcgkl7bwws1qrlnmxgh8g4g9m10vg60bhlw40fplninb3ng6d9";
|
||||
type = "gem";
|
||||
};
|
||||
version = "4.0.6";
|
||||
};
|
||||
rchardet = {
|
||||
groups = [ "default" ];
|
||||
platforms = [ ];
|
||||
source = {
|
||||
remotes = [ "https://rubygems.org" ];
|
||||
sha256 = "1isj1b3ywgg2m1vdlnr41lpvpm3dbyarf1lla4dfibfmad9csfk9";
|
||||
type = "gem";
|
||||
};
|
||||
version = "1.8.0";
|
||||
};
|
||||
}
|
7
pkgs/lolcommits/shell.nix
Normal file
7
pkgs/lolcommits/shell.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs ? import <nixpkgs> { } }:
|
||||
with pkgs;
|
||||
with stdenv;
|
||||
mkShell {
|
||||
name = "lolcommits-shell";
|
||||
buildInputs = [ bundix ruby ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue