nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

sly: add update script

nayeko fd613da7 bd4898dd

+21
+21
pkgs/by-name/sl/sly/package.nix
··· 2 2 lib, 3 3 fetchFromGitHub, 4 4 flutter327, 5 + runCommand, 6 + yq, 7 + sly, 8 + _experimental-update-script-combinators, 9 + gitUpdater, 5 10 }: 6 11 7 12 flutter327.buildFlutterApplication rec { ··· 26 21 install -Dm0644 packaging/linux/page.kramo.Sly.svg $out/share/icons/hicolor/scalable/apps/page.kramo.Sly.svg 27 22 install -Dm0644 packaging/linux/page.kramo.Sly.desktop $out/share/applications/sly.desktop 28 23 ''; 24 + 25 + passthru = { 26 + pubspecSource = 27 + runCommand "pubspec.lock.json" 28 + { 29 + nativeBuildInputs = [ yq ]; 30 + inherit (sly) src; 31 + } 32 + '' 33 + cat $src/pubspec.lock | yq > $out 34 + ''; 35 + updateScript = _experimental-update-script-combinators.sequence [ 36 + (gitUpdater { rev-prefix = "v"; }) 37 + (_experimental-update-script-combinators.copyAttrOutputToFile "sly.pubspecSource" ./pubspec.lock.json) 38 + ]; 39 + }; 29 40 30 41 meta = { 31 42 description = "Friendly image editor";