mirror of
https://github.com/codedownio/time-ghc-modules.git
synced 2024-09-11 05:25:40 +03:00
28 lines
597 B
Nix
28 lines
597 B
Nix
{
|
|
pkgs ? import (import ./pinned-nixpkgs.nix) {}
|
|
}:
|
|
|
|
let
|
|
script = ./time-ghc-modules;
|
|
process = ./scripts/process;
|
|
index = ./dist/index.html;
|
|
|
|
in
|
|
|
|
with pkgs;
|
|
|
|
runCommand "time-ghc-modules" {
|
|
propagatedBuildInputs = [makeWrapper];
|
|
inherit script process index;
|
|
} ''
|
|
mkdir -p $out/bin
|
|
cp $script $out/bin/time-ghc-modules
|
|
wrapProgram $out/bin/time-ghc-modules --prefix PATH : ${lib.makeBinPath [ sqlite python3 coreutils findutils gnused ]}
|
|
|
|
mkdir -p $out/bin/scripts
|
|
ln -s $process $out/bin/scripts/process
|
|
|
|
mkdir -p $out/bin/dist
|
|
ln -s $index $out/bin/dist/index.html
|
|
''
|