fork/wpaperd

git clone https://git.julia.blue/fork/wpaperd

Danilo SpinellaMerge pull request #52 from yunfachi/feature/nix-flakea84a107

follow-links
564 B22 linesraw
1{
2  self,
3  lib,
4}: let
5  inherit ((builtins.fromTOML (builtins.readFile ../daemon/Cargo.toml)).package) version;
6
7  mkDate = longDate: (lib.concatStringsSep "-" [
8    (builtins.substring 0 4 longDate)
9    (builtins.substring 4 2 longDate)
10    (builtins.substring 6 2 longDate)
11  ]);
12in {
13  default = lib.composeManyExtensions [
14    (final: _prev: let
15      date = mkDate self.lastModifiedDate or "19700101";
16    in {
17      wpaperd = final.callPackage ./default.nix {
18        version = "${version}+date=${date}_${self.shortRev or "dirty"}";
19      };
20    })
21  ];
22}