Compare commits
29
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a4d6749411 | ||
|
|
c59dc1252a
|
||
|
|
e1620950b6
|
||
|
|
479ef575d8 | ||
|
|
21037dae06 | ||
|
|
4f5ecae56b | ||
|
|
ff8dcd1587
|
||
|
|
a65b09f6cb
|
||
|
|
887845a8f7
|
||
|
|
1b5df8dea8 | ||
|
|
2fc67cffe3 | ||
|
|
c16695f5f4
|
||
|
|
2f16b8c56a | ||
|
|
ecd0ec0c95
|
||
|
|
91c5fd7944
|
||
|
|
7dad6a62f0
|
||
|
|
c736d31570 | ||
|
|
563be1867c | ||
|
|
9b1238eb39
|
||
|
|
b7c6087115
|
||
|
|
52e8bf19e0 | ||
|
|
af2ded56a4
|
||
|
|
aa4d5e60bb
|
||
|
|
d9ad2edcb6 | ||
|
|
af5b631490
|
||
|
|
cafc818f5d | ||
|
|
fab444b00e
|
||
|
|
b7c830d887
|
||
|
|
d76f1d6453
|
@@ -4,6 +4,11 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Update flake lock
|
||||
types:
|
||||
- completed
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -62,12 +67,15 @@ jobs:
|
||||
|
||||
system="$(nix eval --impure --raw --expr builtins.currentSystem)"
|
||||
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --impure --accept-flake-config --no-link --print-out-paths -L \
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --impure --sandbox --no-sandbox-fallback --accept-flake-config --no-link --print-out-paths -L \
|
||||
".#packages.${system}.atuinLatest" \
|
||||
".#packages.${system}.cliampLatest" \
|
||||
".#packages.${system}.musicpresence" \
|
||||
".#packages.${system}.vintage-story" \
|
||||
".#packages.${system}.swaytreesave" \
|
||||
".#packages.${system}.archon" \
|
||||
".#packages.${system}.ani-cli-rs" \
|
||||
".#packages.${system}.opengoal" \
|
||||
| tee built-paths.txt
|
||||
|
||||
- name: Push packages to Attic
|
||||
|
||||
Generated
+153
-15
@@ -9,11 +9,11 @@
|
||||
"rust-overlay": "rust-overlay"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1787710235,
|
||||
"narHash": "sha256-uWDHHB5Z9m3cXQNjfdWWqp2S/SwosukkJv57ORljCvQ=",
|
||||
"lastModified": 1788133146,
|
||||
"narHash": "sha256-rjxs1D9duSUWf/lnJV6JZXqdpTEbJ1ntX1hZyYHOuK4=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "4afabd4956611ec9213dd8392755dece81688b67",
|
||||
"revCount": 20,
|
||||
"rev": "427757654f013e316b3e267dd345c3ab780da7b6",
|
||||
"revCount": 22,
|
||||
"type": "git",
|
||||
"url": "https://scm.wyattjmiller.com/wymiller/caitsith.git"
|
||||
},
|
||||
@@ -42,6 +42,22 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1767039857,
|
||||
"narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
|
||||
"owner": "NixOS",
|
||||
"repo": "flake-compat",
|
||||
"rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"repo": "flake-compat",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-schemas": {
|
||||
"locked": {
|
||||
"lastModified": 1761577921,
|
||||
@@ -70,6 +86,91 @@
|
||||
"url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%2A"
|
||||
}
|
||||
},
|
||||
"flake-utils": {
|
||||
"inputs": {
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"git-hooks": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat",
|
||||
"gitignore": "gitignore",
|
||||
"nixpkgs": [
|
||||
"go-overlay",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1778507602,
|
||||
"narHash": "sha256-kTwur1wV+01SdqskVMSo6JMEpg71ps3HpbFY2GsflKs=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "61ab0e80d9c7ab14c256b5b453d8b3fb0189ba0a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitignore": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"go-overlay",
|
||||
"git-hooks",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709087332,
|
||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore.nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"go-overlay": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"git-hooks": "git-hooks",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1788301927,
|
||||
"narHash": "sha256-Zmcvt5yW//YLT3HYe3bWN1Sf2txYrnBpa5jLULVokc0=",
|
||||
"owner": "purpleclay",
|
||||
"repo": "go-overlay",
|
||||
"rev": "fe48ae4f56981f9f7c2bf03d4951fb0aa6e2095b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "purpleclay",
|
||||
"repo": "go-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"hildibrand": {
|
||||
"inputs": {
|
||||
"flake-schemas": "flake-schemas_2",
|
||||
@@ -79,11 +180,11 @@
|
||||
"rust-overlay": "rust-overlay_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1785717646,
|
||||
"narHash": "sha256-j6MlkwaYOLa3bogK4SbOnVI5eMZ9j2GdExSiKMaELPo=",
|
||||
"lastModified": 1788130254,
|
||||
"narHash": "sha256-LR+73+2a51LOUKVTkEsP/XMVSZXm2P4hlgb7/KxdQ30=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "9588520925513ed0e47711a5798c6e9958143a0a",
|
||||
"revCount": 5,
|
||||
"rev": "f2049db9c29bf3ab0beff7cf0a990735d5571446",
|
||||
"revCount": 6,
|
||||
"type": "git",
|
||||
"url": "https://scm.wyattjmiller.com/wymiller/hildibrand.git"
|
||||
},
|
||||
@@ -99,11 +200,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1787750582,
|
||||
"narHash": "sha256-FfIAV44k33i+IjC1+new2KyjyVGUzGtV89VHVP4eK1U=",
|
||||
"lastModified": 1788651960,
|
||||
"narHash": "sha256-v9wJd32eZ2bvhBzVOd7TIjLQd011P7nwOhjKtWlci5I=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "0a364342a66bcecfc8a00d2fc38c6c29eee7bc5e",
|
||||
"rev": "2c0350c759688177331b8f5242311fae8877bdb3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -114,11 +215,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1787640266,
|
||||
"narHash": "sha256-MrkfE5hF5xx4L/0h5NyJ3xQkKVftwSuKSkFSrvlTxGY=",
|
||||
"lastModified": 1788584326,
|
||||
"narHash": "sha256-Fd3OB8J9JhgliQwOKcqx4M672CInxi1I5VnwsaXeSQo=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f4f698677b11021a8f84f452e23ae9ef2427bec3",
|
||||
"rev": "6713828a351efa628b025a1adf7f43cbf8597513",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -132,9 +233,11 @@
|
||||
"inputs": {
|
||||
"caitsith": "caitsith",
|
||||
"darwin": "darwin",
|
||||
"go-overlay": "go-overlay",
|
||||
"hildibrand": "hildibrand",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs"
|
||||
"nixpkgs": "nixpkgs",
|
||||
"rust-overlay": "rust-overlay_3"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
@@ -178,6 +281,41 @@
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"rust-overlay_3": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1788678114,
|
||||
"narHash": "sha256-pcqbpV4ZI79al6KAlr+WJjaEo/PYfgctRlG43D5BSJM=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "4748ec2f5ed4a881474ed4c98aa71a5308cdac8d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
||||
@@ -7,13 +7,22 @@
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
darwin.url = "github:LnL7/nix-darwin";
|
||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
rust-overlay = {
|
||||
url = "github:oxalica/rust-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
go-overlay = {
|
||||
url = "github:purpleclay/go-overlay";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
hildibrand.url = "git+https://scm.wyattjmiller.com/wymiller/hildibrand.git";
|
||||
hildibrand.inputs.nixpkgs.follows = "nixpkgs";
|
||||
caitsith.url = "git+https://scm.wyattjmiller.com/wymiller/caitsith.git";
|
||||
caitsith.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, home-manager, darwin, ... }:
|
||||
outputs = inputs@{ self, nixpkgs, home-manager, darwin, rust-overlay, go-overlay, ... }:
|
||||
let
|
||||
supportedSystems = [
|
||||
"x86_64-linux"
|
||||
@@ -23,7 +32,8 @@
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems f;
|
||||
in
|
||||
{
|
||||
packages = forAllSystems (system:
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
@@ -39,8 +49,11 @@
|
||||
}
|
||||
);
|
||||
|
||||
devShells = forAllSystems (system:
|
||||
let pkgs = import nixpkgs { inherit system; }; in
|
||||
devShells = forAllSystems (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
@@ -50,7 +63,11 @@
|
||||
}
|
||||
);
|
||||
|
||||
overlays.default = import ./overlays;
|
||||
overlays.default = nixpkgs.lib.composeManyExtensions [
|
||||
rust-overlay.overlays.default
|
||||
go-overlay.overlays.default
|
||||
(import ./overlays)
|
||||
];
|
||||
homeManagerModules = import ./modules/home-manager self;
|
||||
nixosModules.default = import ./modules/nixos;
|
||||
darwinModules.default = import ./modules/darwin;
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
final: prev:
|
||||
let
|
||||
rustLatest = prev.rust-bin.stable.latest.default;
|
||||
rustPlatform = prev.makeRustPlatform {
|
||||
cargo = rustLatest;
|
||||
rustc = rustLatest;
|
||||
};
|
||||
in
|
||||
{
|
||||
atuinLatest = (prev.atuin.override { inherit rustPlatform; }).overrideAttrs (oldAttrs: rec {
|
||||
version = "18.19.0";
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "atuinsh";
|
||||
repo = "atuin";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-yAw+ty6FUnFbiRTdAe2QQHzj6uU24fZ/bEIXcHl/thg=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit src;
|
||||
hash = "sha256-jirVe0+N5+UHZWioj8AipUhawMBameqEJJpa8HPTnfw=";
|
||||
};
|
||||
|
||||
cargoBuildFeatures = [
|
||||
"ai"
|
||||
"client"
|
||||
"clipboard"
|
||||
"daemon"
|
||||
"hex"
|
||||
"sync"
|
||||
];
|
||||
cargoCheckFeatures = cargoBuildFeatures;
|
||||
|
||||
preCheck = (oldAttrs.preCheck or "") + ''
|
||||
export HOME="$TMPDIR"
|
||||
export XDG_CONFIG_HOME="$TMPDIR/.config"
|
||||
export XDG_DATA_HOME="$TMPDIR/.local/share"
|
||||
export XDG_STATE_HOME="$TMPDIR/.local/state"
|
||||
mkdir -p "$XDG_CONFIG_HOME" "$XDG_DATA_HOME" "$XDG_STATE_HOME"
|
||||
'';
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
final: prev: {
|
||||
cliampLatest = prev.cliamp.overrideAttrs (oldAttrs: rec {
|
||||
version = "2.0.1";
|
||||
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "bjarneo";
|
||||
repo = "cliamp";
|
||||
tag = "v${version}";
|
||||
sha256 = "sha256-r7MrrcVt+/f+iPozn9jaczJmpPv431wAoW8LvHKBtB8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-rtwUWbft5XGEbuBCn0OMCn4TS5Ul+UXJNIqNOzXfU+M=";
|
||||
|
||||
buildInputs = with prev; [
|
||||
libogg
|
||||
libvorbis
|
||||
flac
|
||||
mpg123
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
alsa-lib
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
final: prev: {
|
||||
containerLatest = prev.container.overrideAttrs (oldAttrs: rec {
|
||||
version = "1.3.1";
|
||||
|
||||
src = prev.fetchurl {
|
||||
url = "https://github.com/apple/container/releases/download/${version}/container-${version}-installer-signed.pkg";
|
||||
hash = "sha256-p8G515J9MIdfL2x70dDLBsLapspXzp6QpRROiY/fVKg=";
|
||||
};
|
||||
});
|
||||
}
|
||||
+10
-1
@@ -1 +1,10 @@
|
||||
final: prev: { }
|
||||
final: prev:
|
||||
prev.lib.composeManyExtensions [
|
||||
(import ./atuin.nix)
|
||||
(import ./container.nix)
|
||||
(import ./cliamp.nix)
|
||||
(import ./diffnav.nix)
|
||||
(import ./gh-dash.nix)
|
||||
(import ./lazygit.nix)
|
||||
(import ./k9s.nix)
|
||||
] final prev
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
final: prev: let
|
||||
golang_latest = prev.go-bin.latestStable;
|
||||
buildGoModuleLatest = prev.buildGoModule.override {
|
||||
go = golang_latest;
|
||||
};
|
||||
in {
|
||||
diffNavLatest = (prev.diffnav.override {
|
||||
buildGoModule = buildGoModuleLatest;
|
||||
}).overrideAttrs (_: rec {
|
||||
version = "0.12.0";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "dlvhdr";
|
||||
repo = "diffnav";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-DrEbo9YYg4FCXQXuIkbPxO5Z3ZOPZJYeGoLoP/vT0Y0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-2OzHyBPsylQVXhPlqk2owEhiibFi3H1UENvGGDdzGss";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
final: prev: let
|
||||
golang_latest = prev.go-bin.latestStable;
|
||||
buildGoModuleLatest = prev.buildGoModule.override {
|
||||
go = golang_latest;
|
||||
};
|
||||
in {
|
||||
ghDashLatest = (prev.gh-dash.override {
|
||||
buildGoModule = buildGoModuleLatest;
|
||||
}).overrideAttrs (oldAttrs: rec {
|
||||
version = "4.25.2";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "dlvhdr";
|
||||
repo = "gh-dash";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-FUb4zrGT0L7S1O5EcOCop4n0zlx1ODsANzBcEl9bvOU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-3iUBuMvA2Xh7UjTiFNEs3tuZMCnSt/bIhTSEDD92yCU=";
|
||||
doCheck = false;
|
||||
checkFlags = [
|
||||
"-skip=TestFullOutput"
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/dlvhdr/gh-dash/v4/cmd.Version=${version}"
|
||||
];
|
||||
|
||||
passthru = (oldAttrs.passthru or {}) // {
|
||||
tests = {
|
||||
version = oldAttrs.testers.testVersion { package = final.ghDashLatest; };
|
||||
};
|
||||
};
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
final: prev: {
|
||||
k9sLatest = prev.k9s.overrideAttrs (oldAttrs: rec {
|
||||
version = "0.51.0";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "derailed";
|
||||
repo = "k9s";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-70Rfu1BVd/QnwWXRRpwIeZ2UJNWIGixpdiOHo4v7adA=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-PkYDJK2oGl+siCG9p4R8shC0e5BhGFdJsc+ksL9J5zw=";
|
||||
|
||||
ldflags = [
|
||||
"-X github.com/derailed/k9s/version.Version=${version}"
|
||||
"-X github.com/derailed/k9s/version.BuildSource=nix"
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
final: prev: {
|
||||
lazygitLatest = prev.lazygit.overrideAttrs (_: rec {
|
||||
version = "0.65.0";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "jesseduffield";
|
||||
repo = "lazygit";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-W/Z/BnA5L8tXYrKn3bnekNnx7bEaaJRoHSGAeygcK0E=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
subPackages = [ "." ];
|
||||
ldflags = [
|
||||
"-X main.version=${version}"
|
||||
"-X main.buildSource=nix"
|
||||
];
|
||||
});
|
||||
}
|
||||
+16
-6
@@ -1,19 +1,29 @@
|
||||
{
|
||||
pkgs,
|
||||
hildibrand ? null,
|
||||
caitsith ? null
|
||||
caitsith ? null,
|
||||
}:
|
||||
{
|
||||
# any overlays we define here
|
||||
atuinLatest = pkgs.atuinLatest;
|
||||
containerLatest = pkgs.containerLatest;
|
||||
cliampLatest = pkgs.cliampLatest;
|
||||
lazygitLatest = pkgs.lazygitLatest;
|
||||
ghDashLatest = pkgs.ghDashLatest;
|
||||
diffNavLatest = pkgs.diffNavLatest;
|
||||
k9sLatest = pkgs.k9sLatest;
|
||||
|
||||
# any packages that are added to pkgs and are inputs, we inherit them here
|
||||
inherit hildibrand;
|
||||
inherit caitsith;
|
||||
|
||||
# any packages that build instructions are in this repo, they go here
|
||||
# sable-web = pkgs.callPackage ./common/sable.nix {};
|
||||
swaytreesave = pkgs.callPackage ./linux/swaytreesave.nix {};
|
||||
musicpresence = pkgs.callPackage ./linux/musicpresence.nix {};
|
||||
vintage-story = pkgs.callPackage ./linux/vintage-story.nix {};
|
||||
archon = pkgs.callPackage ./linux/archon.nix {};
|
||||
sable-web = pkgs.callPackage ./common/sable.nix { };
|
||||
swaytreesave = pkgs.callPackage ./linux/swaytreesave.nix { };
|
||||
musicpresence = pkgs.callPackage ./linux/musicpresence.nix { };
|
||||
vintage-story = pkgs.callPackage ./linux/vintage-story.nix { };
|
||||
archon = pkgs.callPackage ./linux/archon.nix { };
|
||||
yubilock = pkgs.callPackage ./linux/yubilock/default.nix { };
|
||||
ani-cli-rs = pkgs.callPackage ./linux/ani-cli-rs.nix { };
|
||||
opengoal = pkgs.callPackage ./linux/opengoal.nix { };
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
{ pkgs }:
|
||||
let
|
||||
pname = "OpenGOAL-Launcher";
|
||||
version = "2.10.4";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/open-goal/launcher/releases/download/v${version}/${pname}_${version}_amd64.AppImage";
|
||||
hash = "sha256-eikzjdOYNdJM9FM3O/HuCFDzf97Fm1nhbRedDyKZ1/s=";
|
||||
};
|
||||
in
|
||||
pkgs.stdenvNoCC.mkDerivation {
|
||||
inherit pname version src;
|
||||
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
|
||||
dontUnpack = true;
|
||||
dontPatchELF = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
cp "$src" "${pname}.AppImage"
|
||||
chmod +x "${pname}.AppImage"
|
||||
./"${pname}.AppImage" --appimage-extract
|
||||
|
||||
mkdir -p "$out/opt"
|
||||
cp -a AppDir "$out/opt/opengoal-launcher"
|
||||
rm -f "$out/opt/opengoal-launcher/share/icons/hicolor/scalable/apps/byobu.svg"
|
||||
|
||||
makeWrapper "$out/opt/opengoal-launcher/AppRun" "$out/bin/${pname}"
|
||||
install -Dm444 "AppDir/${pname}.desktop" \
|
||||
"$out/share/applications/${pname}.desktop"
|
||||
install -Dm444 "AppDir/${pname}.png" \
|
||||
"$out/share/icons/hicolor/256x256/apps/${pname}.png"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = pkgs.nix-update-script { };
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description = "Launcher for the OpenGOAL project";
|
||||
homepage = "https://github.com/open-goal/launcher";
|
||||
license = licenses.mit;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||
mainProgram = pname;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user