Skip to content

Instantly share code, notes, and snippets.

@Fuzen-py Fuzen-py/Gemfile Secret
Created Nov 19, 2019

Embed
What would you like to do?
Nix licensee package
{ lib, bundlerApp, bundlerUpdateScript }:
bundlerApp {
pname = "licensee";
gemdir = "./.";
exes = ["licensee"];
passthru.updateScript = bundlerUpdateScript "licensee";
meta = with lib; {
description = "A tool to Detect under what license a project is distributed.";
homepage = "https://licensee.github.io/licensee/";
license = licenses.MIT;
maintainers = with maintainers; [ sschuberth ];
platforms = platforms.unix;
};
}
source 'https://rubygems.org'
gem 'licensee'
GEM
remote: https://rubygems.org/
specs:
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
dotenv (2.7.5)
faraday (0.17.0)
multipart-post (>= 1.2, < 3)
licensee (9.12.0)
dotenv (~> 2.0)
octokit (~> 4.8)
reverse_markdown (~> 1.0)
rugged (~> 0.24)
thor (~> 0.19)
mini_portile2 (2.4.0)
multipart-post (2.1.1)
nokogiri (1.10.5)
mini_portile2 (~> 2.4.0)
octokit (4.14.0)
sawyer (~> 0.8.0, >= 0.5.3)
public_suffix (4.0.1)
reverse_markdown (1.3.0)
nokogiri
rugged (0.28.3.1)
sawyer (0.8.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
thor (0.20.3)
PLATFORMS
ruby
DEPENDENCIES
licensee
BUNDLED WITH
1.17.3
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
ruby = pkgs.ruby;
rubygems = (pkgs.rubygems.override { ruby = ruby; });
in stdenv.mkDerivation rec {
name = "license-checker";
buildInputs = [
ruby.devEnv
pkgs.zlib
pkgs.git
pkgs.libssh2
pkgs.cmake
pkgs.pkg-config
pkgs.openssl
];
shellHook = ''
mkdir -p .nix-gems
export GEM_HOME=$PWD/.nix-gems
export GEM_PATH=$GEM_HOME
export PATH=$GEM_HOME/bin:$PATH
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.