printerfacts/nix/dhall.nix

17 lines
478 B
Nix
Raw Normal View History

2020-07-09 20:41:47 +00:00
let
sources = import ./sources.nix;
pkgs = import sources.nixpkgs { };
2020-07-09 21:15:32 +00:00
in pkgs.stdenv.mkDerivation rec {
name = "dhall-yaml-simple";
src = sources.dhall-yaml;
installPhase = ''
mkdir -p $out/bin
DHALL_TO_YAML=$out/bin/dhall-to-yaml-ng
install -D -m555 -T dhall-to-yaml-ng $DHALL_TO_YAML
mkdir -p $out/etc/bash_completion.d/
$DHALL_TO_YAML --bash-completion-script $DHALL_TO_YAML > $out/etc/bash_completion.d/dhall-to-yaml-completion.bash
'';
}