mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
commit
f3618f893b
34
pkgs/by-name/lz/lzsa/package.nix
Normal file
34
pkgs/by-name/lz/lzsa/package.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "lzsa";
|
||||
version = "1.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "emmanuel-marty";
|
||||
repo = "lzsa";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-XaPtMW9INv/wzMXvlyXgE3VfFJCY/5R/HFGhV3ZKvGs=";
|
||||
};
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 lzsa -t $out/bin/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/emmanuel-marty/lzsa";
|
||||
description = "Byte-aligned, efficient lossless packer that is optimized for fast decompression on 8-bit micros";
|
||||
license = with lib.licenses; [ cc0 ];
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
|
@ -2,18 +2,19 @@
|
|||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, SDL2
|
||||
, callPackage
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "x16-emulator";
|
||||
version = "44";
|
||||
version = "46";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "X16Community";
|
||||
repo = "x16-emulator";
|
||||
rev = "r${finalAttrs.version}";
|
||||
hash = "sha256-NDtfbhqGldxtvWQf/t6UnMRjI2DR7JYKbm2KFAMZhHY=";
|
||||
hash = "sha256-cYr6s69eua1hCFqNkcomZDK9akxBqMTIaGqOl/YX2kc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -41,6 +42,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
# upstream project recommends emulator and rom to be synchronized; passing
|
||||
# through the version is useful to ensure this
|
||||
inherit (finalAttrs) version;
|
||||
emulator = finalAttrs.finalPackage;
|
||||
rom = callPackage ./rom.nix { };
|
||||
run = (callPackage ./run.nix { }){
|
||||
inherit (finalAttrs.finalPackage) emulator rom;
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
|
@ -2,22 +2,24 @@
|
|||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cc65
|
||||
, lzsa
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "x16-rom";
|
||||
version = "44";
|
||||
version = "46";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "X16Community";
|
||||
repo = "x16-rom";
|
||||
rev = "r${finalAttrs.version}";
|
||||
hash = "sha256-x/U+8e869mkWZKmCiW2fZKGB9un2cFXNclemwxbAjLQ=";
|
||||
hash = "sha256-PcLHIT84NbH+ejq8SY/UN+TYtRFWtqQBHwHqToFUol8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cc65
|
||||
lzsa
|
||||
python3
|
||||
];
|
||||
|
|
@ -35,3 +35,4 @@ symlinkJoin {
|
|||
# 1. Parse the command line in order to allow the user to set an optional
|
||||
# rom-file
|
||||
# 2. generate runScript based on symlinkJoin (maybe a postBuild?)
|
||||
# 3. a NixOS module to abstract the runner
|
|
@ -2945,14 +2945,10 @@ with pkgs;
|
|||
### APPLICATIONS/EMULATORS/YUZU
|
||||
yuzuPackages = callPackage ../applications/emulators/yuzu {};
|
||||
|
||||
### APPLICATIONS/EMULATORS/COMMANDERX16
|
||||
|
||||
x16-emulator = callPackage ../applications/emulators/commanderx16/emulator.nix { };
|
||||
x16-rom = callPackage ../applications/emulators/commanderx16/rom.nix { };
|
||||
x16-run = (callPackage ../applications/emulators/commanderx16/run.nix { }) {
|
||||
emulator = x16-emulator;
|
||||
rom = x16-rom;
|
||||
};
|
||||
# Aliases kept here because they are easier to use
|
||||
x16-emulator = x16.emulator;
|
||||
x16-rom = x16.rom;
|
||||
x16-run = x16.run;
|
||||
|
||||
yabause = libsForQt5.callPackage ../applications/emulators/yabause {
|
||||
freeglut = null;
|
||||
|
|
Loading…
Reference in a new issue