diff options
author | adisbladis <adisbladis@gmail.com> | 2023-05-25 17:30:02 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-25 17:30:02 +1200 |
commit | f465d8c23a6c172861081f213114af98bb4c23d2 (patch) | |
tree | a57d53f1a6fb1cb354e7c41c0812df8b54c480ee /pkgs/applications/editors | |
parent | f4a9199f87abea8056da5be915a36990e9e11b77 (diff) | |
parent | 3ac96ee2224a96afb9e1b7b307cd683b75c7c5f7 (diff) |
Merge pull request #233831 from nagy/emacs-hsc3-mode
emacsPackages.hsc3-mode: use trivialBuild
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/emacs/elisp-packages/manual-packages/hsc3/default.nix | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/hsc3/default.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/hsc3/default.nix index 3b20326d96f52..86b9e274a9673 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/hsc3/default.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/hsc3/default.nix @@ -1,24 +1,17 @@ -{ lib, stdenv, fetchurl, emacs }: +{ lib, trivialBuild, fetchurl, haskell-mode }: -# this package installs the emacs-mode which -# resides in the hsc3 sources. - -let version = "0.15"; - -in stdenv.mkDerivation { +trivialBuild rec { pname = "hsc3-mode"; - inherit version; + version = "0.15"; + src = fetchurl { - url = "mirror://hackage/hsc3-0.15/hsc3-0.15.tar.gz"; + url = "mirror://hackage/hsc3-${version}/hsc3-${version}.tar.gz"; sha256 = "2f3b15655419cf8ebe25ab1c6ec22993b2589b4ffca7c3a75ce478ca78a0bde6"; }; - buildInputs = [ emacs ]; + packageRequires = [ haskell-mode ]; - installPhase = '' - mkdir -p "$out/share/emacs/site-lisp" - cp "emacs/hsc3.el" "$out/share/emacs/site-lisp" - ''; + sourceRoot = "hsc3-${version}/emacs"; meta = { homepage = "http://rd.slavepianos.org/?t=hsc3"; |