Unverified Commit 14b42392 authored by Lein Matsumaru's avatar Lein Matsumaru
Browse files

deco: cleanup

- remove with lib
parent 4c068743
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ stdenv.mkDerivation {
    owner = "vedatechnologiesinc";
    repo = "deco";
    rev = "2fd28241ed28c07b9d641061d4e1bf3cacfcc7a0";
    sha256 = "sha256-kjXEvgYO1p/dX9nXQ3HHcXmJdtxDM6xzKqDQu3yM4Tw=";
    hash = "sha256-kjXEvgYO1p/dX9nXQ3HHcXmJdtxDM6xzKqDQu3yM4Tw=";
  };

  installPhase = ''
@@ -26,18 +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 "xdg-user-dir" "${xdg-user-dirs}/bin/xdg-user-dir"
    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; {
  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";
  };