sway/wallpaper-unfree: Do not waifu2x wallpaper
I don’t have a screen wider than 1920 pixels and I only see my wallpaper when switching to a new (empty) workspace.
This commit is contained in:
parent
3d73519a76
commit
2e33f18a3a
|
@ -3,33 +3,14 @@ let
|
||||||
common = import ./common.nix;
|
common = import ./common.nix;
|
||||||
solarized = common.colorschemes.solarized;
|
solarized = common.colorschemes.solarized;
|
||||||
|
|
||||||
wallpaperUnfree = pkgs.stdenvNoCC.mkDerivation {
|
# Source: “境目” by 3211 on Pixiv: https://www.pixiv.net/en/artworks/39266182
|
||||||
|
wallpaperUnfree = pkgs.fetchurl {
|
||||||
name = "wallpaper-unfree";
|
name = "wallpaper-unfree";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "https://i.pximg.net/img-original/img/2013/10/22/04/25/37/39266182_p0.jpg";
|
url = "https://i.pximg.net/img-original/img/2013/10/22/04/25/37/39266182_p0.jpg";
|
||||||
sha256 = "053gc9jd4cbkkwgcirrhpzbn933dfh83l30p1sz55m5d8zx1lk65";
|
sha256 = "053gc9jd4cbkkwgcirrhpzbn933dfh83l30p1sz55m5d8zx1lk65";
|
||||||
curlOpts = "--referer https://pixiv.net";
|
curlOpts = "--referer https://pixiv.net";
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.unstable.waifu2x-converter-cpp
|
|
||||||
];
|
|
||||||
|
|
||||||
# -o $out does not work (why?)
|
|
||||||
buildPhase = ''
|
|
||||||
waifu2x-converter-cpp -i $src -o wallpaper.png
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
cp wallpaper.png $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontUnpack = true;
|
|
||||||
dontConfigure = true;
|
|
||||||
dontFixup = true;
|
|
||||||
|
|
||||||
# Source: “境目” by 3211 on Pixiv: https://www.pixiv.net/en/artworks/39266182
|
|
||||||
meta.license = lib.licenses.unfree;
|
meta.license = lib.licenses.unfree;
|
||||||
};
|
};
|
||||||
wallpaperFree = pkgs.fetchurl {
|
wallpaperFree = pkgs.fetchurl {
|
||||||
|
|
Loading…
Reference in a new issue