Update flake.nix

This commit is contained in:
Gregory Bednov 2025-01-02 22:04:53 +03:00 committed by GitHub
commit add3737ab3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,9 +4,9 @@
outputs = { self, nixpkgs, ... }: outputs = { self, nixpkgs, ... }:
let let
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
wallpaper = builtins.readFile "./wallpaper.svg"; wallpaper = builtins.readFile "${self}/wallpaper.svg";
folderIcon = builtins.readFile "./folderIcon.svg"; folderIcon = builtins.readFile "${self}/folderIcon.svg";
pcmanfmConf = builtins.readFile "./pcmanfm.conf"; pcmanfmConf = builtins.readFile "${self}/pcmanfm.conf";
desktopItems0 = (pkgs.writeText "desktop-items-0.conf" desktopItems0 = (pkgs.writeText "desktop-items-0.conf"
'' ''
[*] [*]
@ -25,8 +25,8 @@ show_documents=0
show_trash=1 show_trash=1
show_mounts=1 show_mounts=1
''); '');
tint2conf1 = builtins.readFile "./tint2conf.1"; tint2conf1 = builtins.readFile "${self}/tint2conf.1";
tint2conf2 = builtins.readFile "./tint2conf.2"; tint2conf2 = builtins.readFile "${self}/tint2conf.2";
tint2config = pkgs.writeText "tint2conf" tint2config = pkgs.writeText "tint2conf"
'' ''
${tint2conf1} ${tint2conf1}
@ -94,7 +94,7 @@ fi
mireaweek = pkgs.stdenv.mkDerivation rec { mireaweek = pkgs.stdenv.mkDerivation rec {
pname = "mireaweek"; pname = "mireaweek";
version = "0.2.0"; version = "0.2.0";
src = ./weekday.hs; src = ${self}/weekday.hs;
dontInstall = true; dontInstall = true;
dontUnpack = true; dontUnpack = true;
nativeBuildInputs = [pkgs.ghc]; nativeBuildInputs = [pkgs.ghc];