Unverified Commit 02071814 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

deco: fix build (#426954)

parents 2d1799ff 14b42392
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
@@ -5,17 +5,18 @@
  scsh,
  feh,
  xorg,
  xdg-user-dirs,
}:

stdenv.mkDerivation {
  pname = "deco";
  version = "unstable-2019-04-03";
  version = "0-unstable-2025-07-07";

  src = fetchFromGitHub {
    owner = "ebzzry";
    owner = "vedatechnologiesinc";
    repo = "deco";
    rev = "dd8ec7905bc85d085eb2ee3bddabea451054288c";
    sha256 = "sha256-/3GeNvWOCRPOYTUbodXDUxR5QVDEyx6x2Jt5PxsPdvk=";
    rev = "2fd28241ed28c07b9d641061d4e1bf3cacfcc7a0";
    hash = "sha256-kjXEvgYO1p/dX9nXQ3HHcXmJdtxDM6xzKqDQu3yM4Tw=";
  };

  installPhase = ''
@@ -25,17 +26,18 @@ stdenv.mkDerivation {
  '';

  postFixup = ''
    substituteInPlace $out/bin/deco --replace "/usr/bin/env scsh" "${scsh}/bin/scsh"
    substituteInPlace $out/bin/deco --replace "feh" "${feh}/bin/feh"
    substituteInPlace $out/bin/deco --replace "xdpyinfo" "${xorg.xdpyinfo}/bin/xdpyinfo"
    substituteInPlace $out/bin/deco --replace-fail "/usr/bin/env scsh" "${scsh}/bin/scsh"
    substituteInPlace $out/bin/deco --replace-fail "feh" "${feh}/bin/feh"
    substituteInPlace $out/bin/deco --replace-fail "xdpyinfo" "${xorg.xdpyinfo}/bin/xdpyinfo"
    substituteInPlace $out/bin/deco --replace-fail "xdg-user-dir" "${xdg-user-dirs}/bin/xdg-user-dir"
  '';

  meta = with lib; {
    homepage = "https://github.com/ebzzry/deco";
  meta = {
    homepage = "https://github.com/vedatechnologiesinc/deco";
    description = "Simple root image setter";
    license = licenses.mit;
    maintainers = [ maintainers.ebzzry ];
    platforms = platforms.unix;
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ebzzry ];
    platforms = lib.platforms.unix;
    mainProgram = "deco";
  };

+3 −0
Original line number Diff line number Diff line
@@ -31,6 +31,9 @@ stdenv.mkDerivation {
  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ scheme48 ];
  configureFlags = [ "--with-scheme48=${scheme48}" ];
  makeFlags = [
    "SCHEME48VERSION=${scheme48.version}"
  ];

  passthru.updateScript = unstableGitUpdater { };