Compare commits

...

11 Commits

Author SHA1 Message Date
f407a90461
atlauncher: 3.4.20.2 -> 3.4.33.0 2023-08-25 09:08:11 +10:00
github-actions[bot]
9416bec1d7
flake: update inputs (#56)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/750fc50bfd132a44972aa15bb21937ae26303bc4' (2023-08-13)
  → 'github:NixOS/nixpkgs/3476a10478587dec90acb14ec6bde0966c545cc0' (2023-08-20)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-21 22:44:03 +00:00
github-actions[bot]
104c9a0747
flake: update inputs (#55)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5068bc8fe943bde3c446326da8d0ca9c93d5a682' (2023-08-07)
  → 'github:NixOS/nixpkgs/750fc50bfd132a44972aa15bb21937ae26303bc4' (2023-08-13)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-14 23:30:58 +00:00
github-actions[bot]
b986324ca8
flake: update inputs (#54)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3acb5c4264c490e7714d503c7166a3fde0c51324' (2023-07-30)
  → 'github:NixOS/nixpkgs/5068bc8fe943bde3c446326da8d0ca9c93d5a682' (2023-08-07)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-07 06:51:59 +00:00
github-actions[bot]
34b7a0d308
flake: update inputs (#53)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/af8cd5ded7735ca1df1a1174864daab75feeb64a' (2023-07-23)
  → 'github:NixOS/nixpkgs/3acb5c4264c490e7714d503c7166a3fde0c51324' (2023-07-30)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-31 07:17:27 +00:00
github-actions[bot]
10c372b1e3
flake: update inputs (#52)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/66c990850b878437510cc6096e6babce86de5dcb' (2023-07-16)
  → 'github:NixOS/nixpkgs/af8cd5ded7735ca1df1a1174864daab75feeb64a' (2023-07-23)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-25 01:09:25 +00:00
github-actions[bot]
af1f94f029
flake: update inputs (#51)
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25)
  → 'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/2b356dae6208d422236c4cdc48f3bed749f9daea' (2023-07-09)
  → 'github:NixOS/nixpkgs/66c990850b878437510cc6096e6babce86de5dcb' (2023-07-16)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-17 07:15:20 +00:00
43236beb53
cura5: init at 5.4.0 2023-07-15 19:19:55 +10:00
github-actions[bot]
1f97131fc1
flake: update inputs (#50)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/cd99c2b3c9f160cd004318e0697f90bbd5960825' (2023-07-01)
  → 'github:NixOS/nixpkgs/2b356dae6208d422236c4cdc48f3bed749f9daea' (2023-07-09)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-10 08:53:44 +00:00
github-actions[bot]
a7195c6042
flake: update inputs (#49)
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/07059ee2fa34f1598758839b9af87eae7f7ae6ea' (2023-06-25)
  → 'github:NixOS/nixpkgs/cd99c2b3c9f160cd004318e0697f90bbd5960825' (2023-07-01)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 06:56:10 +00:00
github-actions[bot]
8e77024084
flake: update inputs (#48)
Flake lock file updates:

• Updated input 'flake-utils':
    'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31)
  → 'github:numtide/flake-utils/dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7' (2023-06-25)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/91430887645a0953568da2f3e9a3a3bb0a0378ac' (2023-06-18)
  → 'github:NixOS/nixpkgs/07059ee2fa34f1598758839b9af87eae7f7ae6ea' (2023-06-25)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-26 10:38:27 +00:00
3 changed files with 47 additions and 8 deletions

12
flake.lock generated
View File

@ -5,11 +5,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1685518550, "lastModified": 1689068808,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=", "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef", "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -20,11 +20,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1687103638, "lastModified": 1692494774,
"narHash": "sha256-dwy/TK6Db5W7ivcgmcxUykhFwodIg0jrRzOFt7H5NUc=", "narHash": "sha256-noGVoOTyZ2Kr5OFglzKYOX48cx3hggdCPbXrYMG2FDw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "91430887645a0953568da2f3e9a3a3bb0a0378ac", "rev": "3476a10478587dec90acb14ec6bde0966c545cc0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -9,11 +9,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "atlauncher"; pname = "atlauncher";
version = "3.4.20.2"; version = "3.4.33.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/ATLauncher/ATLauncher/releases/download/v${version}/ATLauncher-${version}.jar"; url = "https://github.com/ATLauncher/ATLauncher/releases/download/v${version}/ATLauncher-${version}.jar";
hash = "sha256-YnCDs67BVhJ5rwY6jTbfgHKPbavtmcIMd16AWMBUDgk="; hash = "sha256-bRFDZMhO3ex0dviMvDm/Dhs7LsoLyDNPokScZVE3g/I=";
}; };
dontUnpack = true; dontUnpack = true;

View File

@ -0,0 +1,39 @@
{ stdenv
, fetchurl
, writeScriptBin
, appimageTools
}:
let
pname = "cura5";
version = "5.4.0";
name = "${pname}-${version}";
cura5 = appimageTools.wrapType2 {
inherit pname version;
src = fetchurl {
url = "https://github.com/Ultimaker/Cura/releases/download/${version}/Ultimaker-Cura-${version}-linux-modern.AppImage";
hash = "sha256-QVv7Wkfo082PH6n6rpsB79st2xK2+Np9ivBg/PYZd74=";
};
extraPkgs = _: [ ];
};
script = writeScriptBin pname ''
#!${stdenv.shell}
# AppImage version of Cura loses current working directory and treats all paths relateive to $HOME.
# So we convert each of the files passed as argument to an absolute path.
# This fixes use cases like `cd /path/to/my/files; cura mymodel.stl anothermodel.stl`.
args=()
for a in "$@"; do
if [ -e "$a" ]; then
a="$(realpath "$a")"
fi
args+=("$a")
done
exec "${cura5}/bin/${name}" "''${args[@]}"
'';
in
script // {
inherit name pname version;
meta.platforms = [ "x86_64-linux" ];
}