From 8b01c1f103c8d4ad3e453daa05f895d0b0ba59ef Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Wed, 15 Sep 2021 00:17:32 -0300 Subject: [PATCH] emacsPackages.railgun: use trivialBuild --- .../emacs/elisp-packages/railgun/default.nix | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/railgun/default.nix b/pkgs/applications/editors/emacs/elisp-packages/railgun/default.nix index 240a2f29edf3..e49925e057ce 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/railgun/default.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/railgun/default.nix @@ -1,22 +1,25 @@ -{ lib, stdenv, fetchgit }: +{ lib +, trivialBuild +, fetchFromGitHub +, emacs +}: -stdenv.mkDerivation { - name = "railgun-2012-10-17"; +trivialBuild { + pname = "railgun"; + version= "0.0.0+unstable=2012-10-17"; - src = fetchgit { - url = "https://github.com/mbriggs/railgun.el.git"; + src = fetchFromGitHub { + owner = "mbriggs"; + repo = "railgun.el"; rev = "66aaa1b091baef53a69d0d7425f48d184b865fb8"; - sha256 = "00x09vjd3jz5f73qkf5v1y402zn8vl8dsyfwlq9z646p18ba7gyh"; + hash = "sha256-0L+jFgrXEPMTptx53RDdyH4BiA+7uInHceXL0eROoAM="; }; - installPhase = '' - mkdir -p $out/share/emacs/site-lisp - cp *.el *.elc $out/share/emacs/site-lisp/ - ''; + buildInputs = [ emacs ]; - meta = { - description = "Propel yourself through a rails project with the power of magnets"; + meta = with lib; { homepage = "https://github.com/mbriggs/railgun.el"; - platforms = lib.platforms.all; + description = "Propel yourself through a rails project with the power of magnets"; + inherit (emacs.meta) platforms; }; }