mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
9f11d17ed2
Thank you @grahamc <3
22 lines
498 B
Nix
22 lines
498 B
Nix
{ stdenv, bundlerEnv, ruby}:
|
|
|
|
let
|
|
# To update, just run `nix-shell` in this directory.
|
|
papertrail-env = bundlerEnv rec {
|
|
name = "papertrail-env";
|
|
inherit ruby;
|
|
gemfile = ./Gemfile;
|
|
lockfile = ./Gemfile.lock;
|
|
gemset = ./gemset.nix;
|
|
};
|
|
in stdenv.mkDerivation {
|
|
name = "papertrail-${(import ./gemset.nix).papertrail.version}";
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
ln -s ${papertrail-env}/bin/papertrail $out/bin/papertrail
|
|
'';
|
|
}
|