https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
18 lines
385 B
Nix
18 lines
385 B
Nix
{ trivialBuild
|
|
, haskellPackages
|
|
}:
|
|
|
|
trivialBuild {
|
|
pname = "agda-input";
|
|
|
|
inherit (haskellPackages.Agda) src version;
|
|
|
|
postUnpack = ''
|
|
mv $sourceRoot/src/data/emacs-mode/agda-input.el $sourceRoot
|
|
'';
|
|
|
|
meta = {
|
|
inherit (haskellPackages.Agda.meta) homepage license;
|
|
description = "Standalone package providing the agda-input method without building Agda.";
|
|
};
|
|
}
|