Compare commits
11 Commits
dfd1f1720d
...
f407a90461
Author | SHA1 | Date | |
---|---|---|---|
f407a90461 | |||
|
9416bec1d7 | ||
|
104c9a0747 | ||
|
b986324ca8 | ||
|
34b7a0d308 | ||
|
10c372b1e3 | ||
|
af1f94f029 | ||
43236beb53 | |||
|
1f97131fc1 | ||
|
a7195c6042 | ||
|
8e77024084 |
12
flake.lock
generated
12
flake.lock
generated
@ -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": {
|
||||||
|
@ -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;
|
||||||
|
39
pkgs/unit/cu/cura5/package.nix
Normal file
39
pkgs/unit/cu/cura5/package.nix
Normal 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" ];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user